about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorPeter Stephenson <pws@users.sourceforge.net>2004-06-28 15:38:10 +0000
committerPeter Stephenson <pws@users.sourceforge.net>2004-06-28 15:38:10 +0000
commit7f26993e99cccf2d56958643b8eb369625f04726 (patch)
tree5523268c14d2d86b41b842be5737a167f181f93a /Src/exec.c
parent81d27b662a4e65665f8cfb41a629a92181769506 (diff)
downloadzsh-7f26993e99cccf2d56958643b8eb369625f04726.tar.gz
zsh-7f26993e99cccf2d56958643b8eb369625f04726.tar.xz
zsh-7f26993e99cccf2d56958643b8eb369625f04726.zip
20112 changed c.f. 20113:
fix here string and here document expansion and quoting
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 04e0e19ad..90e75db64 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -2714,9 +2714,10 @@ gethere(char *str, int typ)
 
     for (s = str; *s; s++)
 	if (INULL(*s)) {
-	    *s = Nularg;
 	    qt = 1;
+	    break;
 	}
+    quotesubst(str);
     untokenize(str);
     if (typ == REDIR_HEREDOCDASH) {
 	strip = 1;