From c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6 Mon Sep 17 00:00:00 2001 From: Tanaka Akira Date: Tue, 8 Feb 2000 09:26:56 +0000 Subject: zsh-workers/9614 --- Src/exec.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Src/exec.c') 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; -- cgit 1.4.1