summaryrefslogtreecommitdiffstats
path: root/Src/exec.c
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/exec.c
parentzsh-workers/9606 (diff)
downloadzsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.tar
zsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.tar.gz
zsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.tar.bz2
zsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.tar.lz
zsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.tar.xz
zsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.tar.zst
zsh-c2f578d7e57c91b2d8b4e1d675cc4cd225766ec6.zip
zsh-workers/9614
Diffstat (limited to 'Src/exec.c')
-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;