]> git.ipfire.org Git - thirdparty/bash.git/blob - tests/exec9.sub
Bash-4.4 patch 19
[thirdparty/bash.git] / tests / exec9.sub
1 # make sure commands before the last one in the pipeline can't change $?
2 false
3 false | echo $?
4 false
5 (false) | echo $?
6
7 false
8 true | echo $?
9 false
10 (true) | echo $?
11
12 true
13 false | echo $?
14 true
15 (false) | echo $?
16
17 true
18 true | echo $?
19 true
20 (true) | echo $?