1
0
Fork 0
mirror of git://git.code.sf.net/p/zsh/code synced 2025-10-30 05:40:58 +01:00

unposted: back out 36707, add test case for 36766

This commit is contained in:
Barton E. Schaefer 2015-10-03 22:11:09 -07:00
parent b581c3fece
commit cb26e11c70
4 changed files with 21 additions and 7 deletions

View file

@ -450,6 +450,20 @@
fn
1:ERRRETURN in "else" branch (regression test)
$ZTST_testdir/../Src/zsh -f =(<<<"
if false; then
:
else
if [[ -n '' ]]; then
a=2
fi
print Yes
fi
")
0:ERRRETURN when false "if" is the first statement in an "else" (regression)
>Yes
F:Must be tested with a top-level script rather than source or function
%clean
rm -f TRAPEXIT