diff options
author | Peter Stephenson <pws@users.sourceforge.net> | 2009-07-10 22:10:25 +0000 |
---|---|---|
committer | Peter Stephenson <pws@users.sourceforge.net> | 2009-07-10 22:10:25 +0000 |
commit | 4db28c55b64ec25cd258f87a0d60b0544fe50059 (patch) | |
tree | 7e6c98c9aeae22faf5bc1bb06ff776da5edbf795 /Test/A01grammar.ztst | |
parent | b4c2ea2cece1adeaa915f6c12f310f2268a58751 (diff) | |
download | zsh-4db28c55b64ec25cd258f87a0d60b0544fe50059.tar.gz zsh-4db28c55b64ec25cd258f87a0d60b0544fe50059.tar.xz zsh-4db28c55b64ec25cd258f87a0d60b0544fe50059.zip |
27126: a few more contexts where executing empty lists gives status zero
Diffstat (limited to 'Test/A01grammar.ztst')
-rw-r--r-- | Test/A01grammar.ztst | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/Test/A01grammar.ztst b/Test/A01grammar.ztst index b250d0984..1fe249869 100644 --- a/Test/A01grammar.ztst +++ b/Test/A01grammar.ztst @@ -27,6 +27,18 @@ $nonexistent_variable 0:Executing command that evaluates to empty resets status + false + sleep 1 & + print $? + # a tidy test is a happy test + wait $! +0:Starting background command resets status +>0 + + false + . /dev/null +0:Sourcing empty file resets status + fn() { local foo; read foo; print $foo; } coproc fn print -p coproc test output @@ -531,3 +543,13 @@ . ./bad_syntax 126: Attempt to "." file with bad syntax. ?./bad_syntax:2: parse error near `\n' + + echo 'false' >dot_false + . ./dot_false + print $? + echo 'true' >dot_true + . ./dot_true + print $? +0:Last status of successfully executed "." file is retained +>1 +>0 |