From 7267a81cea8f4bd9263a3222dd5b91256c6c69bc Mon Sep 17 00:00:00 2001 From: Sean Eric Fagan Date: Wed, 24 Aug 1994 21:14:27 +0000 Subject: [PATCH] Fix a problem with passing quoted strings down to commands. Reviewed by: Sean Eric Fagan --- usr.bin/make/str.c | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/usr.bin/make/str.c b/usr.bin/make/str.c index 84e95eb1b403..6e656f730f0c 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)