From 7507e54d0a90c2b096f79ad4eccb3d087e8c478a Mon Sep 17 00:00:00 2001 From: Peter Stephenson Date: Thu, 17 Jul 2003 17:41:17 +0000 Subject: 18864: fix unnecessary space with empty ${(Q)...} --- ChangeLog | 5 +++++ Src/lex.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index dd9707722..ccbdf0a81 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2003-07-17 Peter Stephenson + + * 18864: Src/lex.c: unnecessary spaces with empty substitutions + when using ${(Q)...} flag. + 2003-07-09 Oliver Kiddle * 18841: Completion/Base/Completer/_prefix: work around problem diff --git a/Src/lex.c b/Src/lex.c index e8810c261..88496c38c 100644 --- a/Src/lex.c +++ b/Src/lex.c @@ -1508,7 +1508,7 @@ parse_subst_string(char *s) { int c, l = strlen(s), err, olen; - if (! *s) + if (! *s || !strcmp(s, nulstring)) return 0; lexsave(); untokenize(s); -- cgit 1.4.1