summary refs log tree commit diff
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2003-07-17 09:44:38 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2003-07-17 09:44:38 +0000
commit74f47913dae9a1427e553ac01ef0a3a6ba1095b8 (patch)
tree06b7237387d9114975ba1fdbd101940664ccde1a
parent53eb501c708e74346f3ab3e93c51929f7b9c2588 (diff)
downloadzsh-74f47913dae9a1427e553ac01ef0a3a6ba1095b8.tar.gz
zsh-74f47913dae9a1427e553ac01ef0a3a6ba1095b8.tar.xz
zsh-74f47913dae9a1427e553ac01ef0a3a6ba1095b8.zip
18864: unnecessary space with ${(Q)...}
-rw-r--r--ChangeLog5
-rw-r--r--Src/lex.c2
2 files changed, 6 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index de1aa88d5..a212ab627 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2003-07-17  Peter Stephenson  <pws@csr.com>
+
+	* 18864: Src/lex.c: unnecessary spaces with empty substitutions
+	when using ${(Q)...} flag.
+
 2003-07-17  Doug Kearns  <djkea2@mugca.its.monash.edu.au>
 
 	* 18863: Completion/Unix/Command/_aap: new completion for aap
diff --git a/Src/lex.c b/Src/lex.c
index 8c6ae71c0..495d759d4 100644
--- a/Src/lex.c
+++ b/Src/lex.c
@@ -1512,7 +1512,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);