diff options
author | Philippe Altherr <philippe.altherr@gmail.com> | 2022-12-03 20:42:13 -0800 |
---|---|---|
committer | Bart Schaefer <schaefer@zsh.org> | 2022-12-03 20:42:13 -0800 |
commit | d47b8480f0eb883d54fcbef22999bf26d13d56a4 (patch) | |
tree | 70c927d5302e9992d71d676632d07039b121f5e3 /Test | |
parent | fda6fd9513ffdbd75c490e8e55ce33f370a9bd17 (diff) | |
download | zsh-d47b8480f0eb883d54fcbef22999bf26d13d56a4.tar.gz zsh-d47b8480f0eb883d54fcbef22999bf26d13d56a4.zip |
51001: fix for ERR_EXIT with pipeline negation ("!"); update tests
Diffstat (limited to 'Test')
-rw-r--r-- | Test/C03traps.ztst | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/Test/C03traps.ztst b/Test/C03traps.ztst index 4719dfd57..08e24a32e 100644 --- a/Test/C03traps.ztst +++ b/Test/C03traps.ztst @@ -721,6 +721,21 @@ F:Must be tested with a top-level script rather than source or function >Good (setopt err_exit + ! true + print OK + ) +0:ERR_EXIT not triggered by "! true" +>OK + + (setopt err_exit + fn() { true } + ! fn + print OK + ) +0:ERR_EXIT not triggered by "! fn" +>OK + + (setopt err_exit false && true print OK ) |