1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-28 17:10:59 +01:00

Fix exit status of zsh -fc '! command'

This commit is contained in:
Bart Schaefer 2001-08-19 04:23:46 +00:00
parent 9906e86aee
commit 87ca460fe5
2 changed files with 6 additions and 0 deletions

View file

@ -943,6 +943,8 @@ execpline(Estate state, wordcode slcode, int how, int last1)
if (wc_code(code) != WC_PIPE)
return lastval = (slflags & WC_SUBLIST_NOT) != 0;
else if (slflags & WC_SUBLIST_NOT)
last1 = 0;
pj = thisjob;
ipipe[0] = ipipe[1] = opipe[0] = opipe[1] = 0;