diff options
author | sef <sef@FreeBSD.org> | 1994-08-24 21:14:27 +0000 |
---|---|---|
committer | sef <sef@FreeBSD.org> | 1994-08-24 21:14:27 +0000 |
commit | 8a85f8aa3e30d7d4ef740d11a8d7e89cf9022c51 (patch) | |
tree | 98d266f233bf33daece0fa6389b2b9da53b4e745 /usr.bin/make | |
parent | 9aa07f6222501a5fd4de14a1e2cb2ab23ce3c645 (diff) | |
download | FreeBSD-src-8a85f8aa3e30d7d4ef740d11a8d7e89cf9022c51.zip FreeBSD-src-8a85f8aa3e30d7d4ef740d11a8d7e89cf9022c51.tar.gz |
Fix a problem with passing quoted strings down to commands.
Reviewed by: Sean Eric Fagan
Diffstat (limited to 'usr.bin/make')
-rw-r--r-- | usr.bin/make/str.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c index 84e95eb..6e656f7 100644 --- a/usr.bin/make/str.c +++ b/usr.bin/make/str.c @@ -133,14 +133,17 @@ brk_string(str, store_argc) switch(ch = *p) { case '"': case '\'': - if (inquote) + if (inquote) { if (inquote == ch) inquote = '\0'; else break; - else + } else { inquote = (char) ch; - continue; + start = t; + continue; + } + /* FALLTHROUGH */ case ' ': case '\t': if (inquote) |