mirror of
git://git.code.sf.net/p/zsh/code
synced 2025-10-24 17:00:32 +02:00
unposted: tests for 39839, 39844
This commit is contained in:
parent
ff36590910
commit
dee0bce7b4
2 changed files with 15 additions and 0 deletions
|
|
@ -284,6 +284,7 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
|
|||
select x; do :; done; echo $?
|
||||
select x in; do :; done; echo $?
|
||||
select x in _*_; do :; done; echo $?
|
||||
unsetopt ERR_EXIT NULL_GLOB
|
||||
0:The status of "select" is zero when the loop body does not execute
|
||||
>0
|
||||
>0
|
||||
|
|
@ -297,3 +298,15 @@ F:anonymous function, and a descriptor leak when backgrounding a pipeline
|
|||
0:Background job exit does not affect reaping foreground job
|
||||
>CHLD
|
||||
>OK
|
||||
|
||||
# Regression test for workers/39839 and workers/39844
|
||||
() { if return 11; then :; fi }; echo $?
|
||||
() { while return 13; do :; done }; echo $?
|
||||
() { until return 17; do :; done }; echo $?
|
||||
() { until false; do return 19; done }; echo $?
|
||||
0:"return" in "if" or "while" conditional
|
||||
>11
|
||||
>13
|
||||
>17
|
||||
>19
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue