Peter Stephenson
17fb014dc7
38094: Fix POSIX EXIT traps defined in function.
...
These aren't local, so set the local level to 0; else they can get
overridden incorrectly.
2016-03-07 09:42:21 +00:00
Peter Stephenson
c55d855171
38024: Improve POSIX and native EXIT traps compatibility.
...
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-25 14:20:26 +00:00
Peter Stephenson
ab74c86edb
37999: Sticky behaviour of EXIT traps.
...
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.
2016-02-17 10:40:55 +00:00
Barton E. Schaefer
cb26e11c70
unposted: back out 36707, add test case for 36766
2015-10-03 22:11:09 -07:00
Mikael Magnusson
ce12868837
unposted: add tests for outputting traps specified via aliases
2015-08-09 21:53:05 +02:00
Peter Stephenson
3af55c858f
35751: Fix ERR_RETURN and ERR_EXIT in "else"
2015-07-09 14:59:20 +01:00
Peter Stephenson
1869eeb393
30876: fix obscure failures to propagate non-zero status
...
from optimised simple commands within lists
2012-12-13 10:36:59 +00:00
Peter Stephenson
ade705cf5b
28253: document -h argument to atribute commands
2010-09-12 18:56:40 +00:00
Peter Stephenson
cb8ddf171e
c.f. 27950: strip bogus whitespace from tests
2010-05-10 12:31:49 +00:00
Peter Stephenson
a6ea7ab36d
27947: some cases where we should execute EXIT traps
2010-05-05 09:49:39 +00:00
Peter Stephenson
2e3363ef7d
25571: when parsing use line numbers for the start of a token, not the end
...
add test and move debug trap tests to new file
2008-08-31 19:50:47 +00:00
Peter Stephenson
b41c26d78a
25570: line numbers of complex sublists were wrong, plus test
...
make lineno zlong in another place
2008-08-31 16:01:10 +00:00
Peter Stephenson
b8ae885ab8
25532: problem skipping assignments etc. with setopt ERREXIT
2008-08-25 17:28:13 +00:00
Peter Stephenson
2706eac454
25415: Make DEBUG_BEFORE_CMD the default.
...
Reuse ERR_EXIT in DEBUG traps.
Clean up trapreturn code.
2008-08-07 16:25:14 +00:00
Peter Stephenson
b36d4eec0b
25400: Rockys test for second part of trapreturn bug
2008-08-06 08:54:18 +00:00
Peter Stephenson
21d757f50f
25392: test for 25367
2008-08-05 08:41:22 +00:00
Peter Stephenson
52e5a75a7a
23486: use {fd} syntax to get fd's for tests
2007-05-29 14:50:28 +00:00
Peter Stephenson
b4a7ad8269
23101: various combinations of ZERR with function returns were feature-ridden
2007-01-12 23:10:15 +00:00
Peter Stephenson
862c974d7c
22277: missed bit
2006-03-03 22:09:58 +00:00
Wayne Davison
5cba05a3be
21580: Thorsten's patch to make sure that no pre-existing traps
...
interfere with the tests.
2005-08-09 07:53:49 +00:00
Bart Schaefer
5ade42c05e
21215: clean up after autoloaded trap test
2005-05-01 01:23:54 +00:00
Peter Stephenson
ad95e2e279
21136: don't leave TRAPEXIT lying around in Test directory
2005-04-13 10:01:52 +00:00
Peter Stephenson
05b06b1c08
fix autoloaded trap bug; rejig use of trapfuncs
...
(now traplists); improve trap tests
2005-02-06 20:36:09 +00:00
Peter Stephenson
17e576782c
20198: fix TRAPEXIT.
2004-07-26 13:18:07 +00:00
Peter Stephenson
1316a6b441
19575: Fix problem with trap on EXIT overriding status
2004-03-10 10:50:00 +00:00
Peter Stephenson
89719fbac3
test EXIT trap fix
2001-10-01 12:38:32 +00:00
Sven Wischnowsky
cf6c9c8d1a
moved from ./Test/08traps.ztst
2001-04-02 12:32:43 +00:00