blob: 7b13b01a5905972cd7258503162fccbc94726560 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
Description: atttempt to make interactive param test more robust
Origin: af2ab0247265a04ac74c0ffadf8213bc1af28e41
Author: Peter Stephenson <p.w.stephenson@ntlworld.com>
--- a/Test/D04parameter.ztst
+++ b/Test/D04parameter.ztst
@@ -97,16 +97,17 @@
PROMPT="" $ZTST_testdir/../Src/zsh -fis <<<'
unsetopt PROMPT_SP
- PS2="" PS3="" PS4="" RPS1="" RPS2=""
+ PS1="" PS2="" PS3="" PS4="" RPS1="" RPS2=""
+ exec 2>&1
foo() {
print ${1:?no arguments given}
print not reached
}
foo
print reached
- '
+ ' 2>/dev/null
0:interactive shell returns to top level on ${...?...} error
-?foo:1: 1: no arguments given
+*>*foo:1: 1: no arguments given
>reached
print ${set1:+word1} ${set1+word2} ${null1:+word3} ${null1+word4}
|