about summary refs log tree commit diff
path: root/Src
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>2000-02-08 09:26:56 +0000
committerTanaka Akira <akr@users.sourceforge.net>2000-02-08 09:26:56 +0000
commitc2f578d7e57c91b2d8b4e1d675cc4cd225766ec6 (patch)
tree15e64776beae5b3dd11511956c06e6909d0486cf /Src
parent6faf9c07a8b6d263f2b0bd97f5024d2fb3c068c3 (diff)
downloadzsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.tar.gz
zsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.tar.xz
zsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.zip
zsh-workers/9614
Diffstat (limited to 'Src')
-rw-r--r--Src/exec.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 632a99865..fb73e124e 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1505,7 +1505,7 @@ setunderscore(char *str)
     }
 }
 
-static int esprefork, esglob;
+static int esprefork, esglob = 1;
 
 /**/
 void
@@ -1916,10 +1916,10 @@ execcmd(Estate state, int input, int output, int how, int last1)
 	is_exec = 1;
     }
 
-    if (args && (esglob = !(cflags & BINF_NOGLOB))) {
+    if ((esglob = !(cflags & BINF_NOGLOB)) && args) {
 	LinkList oargs = args;
 	globlist(args);
-	args=oargs;
+	args = oargs;
     }
     if (errflag) {
 	lastval = 1;