about summary refs log tree commit diff
path: root/Src/exec.c
diff options
context:
space:
mode:
authorTanaka Akira <akr@users.sourceforge.net>1999-08-25 14:41:02 +0000
committerTanaka Akira <akr@users.sourceforge.net>1999-08-25 14:41:02 +0000
commit6fc030bbf948f924fe7fcbb700b282abd1872a96 (patch)
tree8dde0663763fdfc290a1f32af4c359b6b3c1098b /Src/exec.c
parent85e7a6af99b5c83754949ea3a89b493e7ed95c27 (diff)
downloadzsh-6fc030bbf948f924fe7fcbb700b282abd1872a96.tar.gz
zsh-6fc030bbf948f924fe7fcbb700b282abd1872a96.tar.xz
zsh-6fc030bbf948f924fe7fcbb700b282abd1872a96.zip
zsh-workers/7482
Diffstat (limited to 'Src/exec.c')
-rw-r--r--Src/exec.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c
index 91f95fe24..d37acd902 100644
--- a/Src/exec.c
+++ b/Src/exec.c
@@ -1799,8 +1799,11 @@ execcmd(Cmd cmd, int input, int output, int how, int last1)
 	is_exec = 1;
     }
 
-    if (args && !(cflags & BINF_NOGLOB))
+    if (args && !(cflags & BINF_NOGLOB)) {
+	LinkList oargs = args;
 	globlist(args);
+	args=oargs;
+    }
     if (errflag) {
 	lastval = 1;
 	goto err;