diff options
author | Peter Stephenson <p.stephenson@samsung.com> | 2022-12-12 10:30:13 +0000 |
---|---|---|
committer | Peter Stephenson <p.stephenson@samsung.com> | 2022-12-12 10:30:13 +0000 |
commit | 67d4bf5bb936a5b95160410b4790f2bf4113c75f (patch) | |
tree | 5fefa872c290a8990f42d0a1a510669b2e2cd9c0 /Src/exec.c | |
parent | 14559421e2a054f9b09d6fa1971158a5e7e162a6 (diff) | |
download | zsh-67d4bf5bb936a5b95160410b4790f2bf4113c75f.tar.gz zsh-67d4bf5bb936a5b95160410b4790f2bf4113c75f.tar.xz zsh-67d4bf5bb936a5b95160410b4790f2bf4113c75f.zip |
51134: ! return doesn't change the return status
Diffstat (limited to 'Src/exec.c')
-rw-r--r-- | Src/exec.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Src/exec.c b/Src/exec.c index a1059af5e..7001fd615 100644 --- a/Src/exec.c +++ b/Src/exec.c @@ -1961,7 +1961,7 @@ execpline(Estate state, wordcode slcode, int how, int last1) } else unqueue_signals(); - if ((slflags & WC_SUBLIST_NOT) && !errflag) + if ((slflags & WC_SUBLIST_NOT) && !errflag && !retflag) lastval = !lastval; } if (!pline_level) |