diff options
author | Axel Beckert <abe@deuxchevaux.org> | 2022-05-08 05:47:08 +0200 |
---|---|---|
committer | Axel Beckert <abe@deuxchevaux.org> | 2022-05-08 05:47:08 +0200 |
commit | 9529af723604dfe1c8152db11e1d216621c898d5 (patch) | |
tree | a512727d6ea897041fca8a6b09f7d5ddd753d7f1 /Src/exec.c | |
parent | b09f4483416c54c1782824633dfabaf2ec0265b6 (diff) | |
parent | 32100208ecc26f8b70a0dbef6298bfd2b823d8d0 (diff) | |
download | zsh-9529af723604dfe1c8152db11e1d216621c898d5.tar.gz zsh-9529af723604dfe1c8152db11e1d216621c898d5.zip |
New upstream version 5.8.1.3-test
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/Src/exec.c b/Src/exec.c index 27d49e005..f2911807c 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -561,7 +561,7 @@ zexecve(char *pth, char **argv, char **newenvp) isbinary = 1; hasletter = 0; for (ptr = execvebuf; ptr < ptr2; ptr++) { - if (islower(*ptr) || *ptr == '$' || *ptr == '`') + if (islower(STOUC(*ptr)) || *ptr == '$' || *ptr == '`') hasletter = 1; if (hasletter && *ptr == '\n') { isbinary = 0; @@ -3898,6 +3898,10 @@ execcmd_exec(Estate state, Execcmd_params eparams, for (i = 0; i < 10; i++) if (save[i] != -2) zclose(save[i]); + /* + * We're done with this job, no need to wait for it. + */ + jobtab[thisjob].stat |= STAT_DONE; goto done; } if (isset(XTRACE)) { @@ -4879,13 +4883,9 @@ getoutputfile(char *cmd, char **eptr) child_unblock(); return nam; } else if (pid) { - int os; - close(fd); - os = jobtab[thisjob].stat; waitforpid(pid, 0); cmdoutval = 0; - jobtab[thisjob].stat = os; return nam; } |