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

40088: atttempt to make interactive param test more robust

This commit is contained in:
Peter Stephenson 2016-12-04 19:19:59 +00:00
parent ffed0695c2
commit af2ab02472
2 changed files with 9 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2016-12-04 Peter Stephenson <p.w.stephenson@ntlworld.com>
* 40088: Test/D04parameter.ztst: attempt to make output from
interactive test more robust.
2016-12-03 Barton E. Schaefer <schaefer@zsh.org> 2016-12-03 Barton E. Schaefer <schaefer@zsh.org>
* unposted: Test/D04parameter.ztst: regression test for 40071 * unposted: Test/D04parameter.ztst: regression test for 40071

View file

@ -97,16 +97,17 @@
PROMPT="" $ZTST_testdir/../Src/zsh -fis <<<' PROMPT="" $ZTST_testdir/../Src/zsh -fis <<<'
unsetopt PROMPT_SP unsetopt PROMPT_SP
PS2="" PS3="" PS4="" RPS1="" RPS2="" PS1="" PS2="" PS3="" PS4="" RPS1="" RPS2=""
exec 2>&1
foo() { foo() {
print ${1:?no arguments given} print ${1:?no arguments given}
print not reached print not reached
} }
foo foo
print reached print reached
' ' 2>/dev/null
0:interactive shell returns to top level on ${...?...} error 0:interactive shell returns to top level on ${...?...} error
?foo:1: 1: no arguments given *>*foo:1: 1: no arguments given
>reached >reached
print ${set1:+word1} ${set1+word2} ${null1:+word3} ${null1+word4} print ${set1:+word1} ${set1+word2} ${null1:+word3} ${null1+word4}