Stephane Chazelas
b3cad1c24c
52515: (+ tests in 52527) avoid sh errors when running shebang-less scripts with paths starting with - or +
2024-02-18 18:22:37 +00:00
Jun-ichi Takimoto
c36068357b
50342: fix test added by 50306
2022-06-09 15:08:39 +09:00
Jun-ichi Takimoto
22b1a91c2a
50306: fix wait for child that was stopped/continued
...
do not call addbgstatus() when child is stopped/continued
2022-06-03 19:32:56 +09:00
Daniel Shahaf
ca94d3acda
unposted: Fix typos
2021-09-26 09:00:32 +00:00
Daniel Shahaf
a2a0293d4f
47296 (+ unposted additional tests and comments): 'repeat' loops: Let the repeat count use $?.
...
It's an arithmetic expression.
2020-08-08 06:11:00 +00:00
Daniel Shahaf
6be112fe74
46067: Add a unit test for workers/46060.
2020-06-18 10:34:11 +00:00
Martijn Dekker
2d056ebc31
43945 (tweaked to remove test failure, noted in test):
...
Fix exit statuses from wait for POSIX_BUILTINS mode.
Also add tests.
2018-12-30 18:11:43 +00:00
Peter Stephenson
1056827194
43466: Make path(5) test more generic.
...
Only test non-zero status as OS error codes and messages vary.
2018-09-14 09:22:08 +01:00
Peter Stephenson
9bc7e5b404
43375 with fix from 43390: fix #! tests.
...
Don't assume path to sh and echo, instead work it out.
2018-09-05 17:58:41 +01:00
Anthony Sottile
1c4c7b6a4d
CVE-2018-0502, CVE-2018-13259: Fix two security issues in shebang line parsing.
...
See NEWS for more information.
Patch by Anthony Sottile and Buck Evan.
2018-09-03 15:07:47 +00:00
Barton E. Schaefer
dee0bce7b4
unposted: tests for 39839, 39844
2016-11-05 21:37:23 -07:00
Barton E. Schaefer
9f5dffa1f3
36393: process queued signals during dotrap()
2015-09-02 19:11:54 -07:00
Barton E. Schaefer
51f5898dc0
cf. Axel Beckert 36292: discard even more extraneous stderr in "hang" test
2015-08-27 09:21:18 -07:00
Barton E. Schaefer
caaed169e5
36282: discard stderr of "hang" test
2015-08-26 21:38:55 -07:00
Peter Stephenson
fe924b270c
36045: make effect of failures in wait test clearer
2015-08-10 13:55:25 +01:00
Barton E. Schaefer
d6a32ddeed
34065: following an "if" condition, do not test lastval for ERR_EXIT until a new command is run
...
Includes unposted regression tests.
2014-12-27 21:55:58 -08:00
Peter Stephenson
0412c0baaa
33564: care with monitor option in test
2014-10-26 21:24:23 +00:00
Peter Stephenson
9a551ca859
33542: test logic for waiting for already exited processes
2014-10-26 19:04:47 +00:00
Barton E. Schaefer
a65fb0677c
33354: when backgrounding a pipeline, close all pipe descriptors in the parent
...
Add test for both this and 33345+33346
2014-10-04 21:08:56 -07:00
Peter Stephenson
f16813792e
33325: fix ksh autoloads with redirections on function definitions
2014-10-02 16:15:10 +01:00
Barton E. Schaefer
4d0d6e8bed
Further tweaking of the descriptor leak regression test that sometimes hangs
2014-08-31 14:08:20 -07:00
Barton E. Schaefer
a3651e1205
timeout the final "read" in hung shell regression
2014-08-15 10:24:09 -07:00
Peter Stephenson
aede5c52bf
32176: plug additional deadlock-inducing pipe descriptor leaks
2013-12-21 17:41:21 -08:00
Barton E. Schaefer
21be065ddf
32172: regression test for 32171
2013-12-21 12:53:59 -08:00
Barton E. Schaefer
deccbf31d7
Unposted (see 32085): Another nonessential setopt
2013-12-02 10:32:11 -08:00
Barton E. Schaefer
5a517e9cf4
32080: Suppress error output from nonessential setopt
2013-12-02 10:11:12 -08:00
Barton E. Schaefer
c3114a7735
31906: fix race-condition interaction of $pipestatus with job control
...
printjob() should not reference oldjobtab for job numbers unless it is being called from bin_fg(). printjob() also must not attempt to update pipestats when called from bin_fg(). acquire_pgrp() should not loop infintely if the shell is not interactive. Update the $pipestatus stress test so that it also exercises the oldjobtab repair.
2013-10-26 16:11:40 -07:00
Peter Stephenson
f91bf85cc3
31888: Add another test for pipestatus.
...
This one was reliably failing before the fix, see zsh-workers-31870
2013-10-24 17:51:19 +01:00
Peter Stephenson
59b060bd5b
31884: Make new pipestatus test implementation proof.
...
It seems uniq's vary in the number of spaces they output.
2013-10-24 17:31:02 +01:00
Barton E. Schaefer
65e131c838
31879 plus misc.: improve $pipestatus handling and add a test for it
2013-10-23 22:45:02 -07:00
Peter Stephenson
0f1fd5b91f
28475: test that starting background job resets status
2010-12-05 18:33:07 +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
aba936b17c
22981: Zvi Har'el: bad call from 22952
...
22980: add hook array for special functions
2006-11-08 10:38:05 +00:00
Peter Stephenson
640bbab78f
20221: $LINENO in trap '...' DEBUG was wrong.
2004-07-29 15:09:51 +00:00
Bart Schaefer
4ab1fb2bd3
Assorted minor test tweaks.
2001-08-22 15:59:27 +00:00
Peter Stephenson
cef000cc62
15329: test script changes to go with 15327 LINENO change
2001-07-09 16:41:19 +00:00
Sven Wischnowsky
d8aef9a9a6
moved from ./Test/05command.ztst
2001-04-02 12:31:39 +00:00