Age | Commit message (Collapse) | Author | Files | Lines | |
---|---|---|---|---|---|
2024-06-28 | 52977: ERR_EXIT/ERR_RETURN are respected by the final command in && / || lists | Philippe Altherr | 1 | -0/+27 | |
2023-04-17 | 51652: fix running of TRAPEXIT explicitly. | Peter Stephenson | 1 | -0/+11 | |
This is a special case where TRAPEXIT is unset within a TRAPEXIT as it should never run in a nested context, so just save the function structure temporarily on the heap. | |||||
2022-12-03 | 51076: fix ERR_EXIT when used with "eval" or "source"; documentary comments | Philippe Altherr | 1 | -0/+41 | |
2022-12-03 | 51071: fix ERR_RETURN for functions in conditional statements | Philippe Altherr | 1 | -0/+16 | |
2022-12-03 | 51001: fix for ERR_EXIT following shell function; update tests | Philippe Altherr | 1 | -0/+82 | |
2022-12-03 | 51001: fix for ERR_EXIT with pipeline negation ("!"); update tests | Philippe Altherr | 1 | -0/+15 | |
2022-12-03 | 51001: fix for ERR_EXIT with "always" blocks; update tests | Philippe Altherr | 1 | -7/+29 | |
2022-12-03 | 51001: Reverts 8839e969b, most of 1ba8714a, and d873ed60. | Philippe Altherr | 1 | -5/+10 | |
Also correct ChangeLog | |||||
2022-11-09 | 50928: fix tests for 50897, mention behavior change in NEWS | Bart Schaefer | 1 | -11/+6 | |
2022-04-17 | unposted (see 50072): check exit status in exit-from-trap test | Bart Schaefer | 1 | -1/+1 | |
2022-04-14 | 50069: ChangeLog and test description for 50068 | Bart Schaefer | 1 | -1/+1 | |
2022-04-14 | 50068: 'exit' in trap causes calling function to return | Bart Schaefer | 1 | -1/+1 | |
2020-02-02 | 45373: Fix ERR_EXIT bug in else branch of if. | Peter Stephenson | 1 | -0/+9 | |
The flags need resetting for this branch otherwise e.g. command substitution with non-zero status doesn't cause exit. | |||||
2020-01-01 | 45169/0002 (tweaked for trailing newlines): Add an expected-to-fail test for ↵ | Daniel Shahaf | 1 | -0/+17 | |
workers/44007. | |||||
2018-10-10 | unposted: another couple of tests for previous commit. | Peter Stephenson | 1 | -0/+6 | |
This tests different code paths as the -c command option exits in a different fashion from code executed from a script. | |||||
2018-10-10 | 43669: ensure explicit exit status is used over implicit | Peter Stephenson | 1 | -0/+3 | |
2018-10-09 | 43660: extend 43653 when final exit is implicit. | Peter Stephenson | 1 | -0/+4 | |
Combine logic for case after committed to exit (shell_exiting) with case where exit occurred in a function we nee to unwind (exit_pending). Add sarky note for future generations to be confused at. | |||||
2018-10-09 | unposted: addition to previous trap test suggested by Mikael | Peter Stephenson | 1 | -0/+3 | |
2018-10-09 | 43653: explicit exit from EXIT trap overrides exit status | Peter Stephenson | 1 | -0/+3 | |
2018-07-09 | users/23531: Error exit/return fixes. | Peter Stephenson | 1 | -0/+17 | |
Fix regression with trap on left hand side of pipe. Fix forced return from shell structure within nested function. Fix tests exiting too early. Add new test case. | |||||
2017-08-31 | Fix problem with ERR_RETURN. | Peter Stephenson | 1 | -0/+34 | |
It wasn't suppressed properly in the code following an if in some circumstances, in particular in initialsation scripts and also in a nested function where the caller had suppressed it. | |||||
2017-08-29 | 41608 (plus tests): restore ERR_EXIT before function. | Peter Stephenson | 1 | -0/+35 | |
There was an exception to the usual ERR_EXIT pattern that causes problems when executing a function in an else branch. It seems the exception is no longer needed as the regression tests pass without it. | |||||
2017-04-27 | 41012: Fix premature exit from nested function in EXIT trap. | Peter Stephenson | 1 | -0/+21 | |
Also add check so we don't delay an exit if we were already in an EXIT trap for the main shell, as we should in that case leave immediately. | |||||
2016-12-05 | 40100: ERR_EXIT and ERR_RETURN test for anonymous functions. | Peter Stephenson | 1 | -0/+11 | |
Should trigger on non-zero status at end of function even if behaviour is suppressed by code inside the function at the point the status is set. | |||||
2016-12-05 | Additional case for ERR_RETURN and ERR_EXIT. | Peter Stephenson | 1 | -0/+17 | |
Don't trigger just because status is non-zero at end of current shell group. | |||||
2016-12-05 | Extra case for ERR_RETURN and ERR_EXIT. | Peter Stephenson | 1 | -0/+70 | |
Don't trigger just because status is non-zero at end of complex shell construct as this may be a case we've already suppressed. | |||||
2016-11-10 | 39901: No EXIT trap on LHS of pipeline. | Peter Stephenson | 1 | -0/+17 | |
There is a special case if the LHS is a shell construct. Add unit tests for both cases. | |||||
2016-11-08 | 39870: ensure exit trap can always run | Peter Stephenson | 1 | -0/+15 | |
2016-10-06 | 39578: Test more ERR_RETURN cases with "&&" and functions | Peter Stephenson | 1 | -0/+30 | |
2016-10-05 | 39571: Fix ERR_EXIT bug with && and function. | Peter Stephenson | 1 | -9/+22 | |
"foo && bar" inside a function could cause the code outside the function not to perform ERR_EXIT or ERR_RETURN when needed. | |||||
2016-10-05 | 39568: "! <complex-command>" suppresses ERR_EXIT | Peter Stephenson | 1 | -0/+27 | |
2016-10-02 | 39540: "! command" should suppress ERR_EXIT and ERR_RETURN | Peter Stephenson | 1 | -0/+37 | |
2016-03-07 | 38094: Fix POSIX EXIT traps defined in function. | Peter Stephenson | 1 | -2/+20 | |
These aren't local, so set the local level to 0; else they can get overridden incorrectly. | |||||
2016-02-25 | 38024: Improve POSIX and native EXIT traps compatibility. | Peter Stephenson | 1 | -0/+17 | |
Allow a nested function trap to leave save and restore a POSIX trap. Still fails if the POSIX trap was defined in a function. | |||||
2016-02-17 | 37999: Sticky behaviour of EXIT traps. | Peter Stephenson | 1 | -0/+20 | |
They now have POSIX or non-POSIX behaviour based on the setting of POSIX_TRAPS where the trap was defined, rather than where the trap would (or would not) be executed. Tweaks possible. | |||||
2015-10-03 | unposted: back out 36707, add test case for 36766 | Barton E. Schaefer | 1 | -0/+14 | |
2015-08-09 | unposted: add tests for outputting traps specified via aliases | Mikael Magnusson | 1 | -0/+11 | |
2015-07-09 | 35751: Fix ERR_RETURN and ERR_EXIT in "else" | Peter Stephenson | 1 | -0/+40 | |
2012-12-13 | 30876: fix obscure failures to propagate non-zero status | Peter Stephenson | 1 | -0/+11 | |
from optimised simple commands within lists | |||||
2010-09-12 | 28253: document -h argument to atribute commands | Peter Stephenson | 1 | -0/+17 | |
2010-05-10 | c.f. 27950: strip bogus whitespace from tests | Peter Stephenson | 1 | -4/+4 | |
2010-05-05 | 27947: some cases where we should execute EXIT traps | Peter Stephenson | 1 | -0/+20 | |
2008-08-31 | 25571: when parsing use line numbers for the start of a token, not the end | Peter Stephenson | 1 | -88/+0 | |
add test and move debug trap tests to new file | |||||
2008-08-31 | 25570: line numbers of complex sublists were wrong, plus test | Peter Stephenson | 1 | -0/+10 | |
make lineno zlong in another place | |||||
2008-08-25 | 25532: problem skipping assignments etc. with setopt ERREXIT | Peter Stephenson | 1 | -0/+14 | |
2008-08-07 | 25415: Make DEBUG_BEFORE_CMD the default. | Peter Stephenson | 1 | -0/+13 | |
Reuse ERR_EXIT in DEBUG traps. Clean up trapreturn code. | |||||
2008-08-06 | 25400: Rockys test for second part of trapreturn bug | Peter Stephenson | 1 | -0/+14 | |
2008-08-05 | 25392: test for 25367 | Peter Stephenson | 1 | -0/+38 | |
2007-05-29 | 23486: use {fd} syntax to get fd's for tests | Peter Stephenson | 1 | -3/+3 | |
2007-01-12 | 23101: various combinations of ZERR with function returns were feature-ridden | Peter Stephenson | 1 | -0/+63 | |