mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-06-21 12:57:58 +02:00
21 lines
252 B
Plaintext
21 lines
252 B
Plaintext
# make sure commands before the last one in the pipeline can't change $?
|
|
false
|
|
false | echo $?
|
|
false
|
|
(false) | echo $?
|
|
|
|
false
|
|
true | echo $?
|
|
false
|
|
(true) | echo $?
|
|
|
|
true
|
|
false | echo $?
|
|
true
|
|
(false) | echo $?
|
|
|
|
true
|
|
true | echo $?
|
|
true
|
|
(true) | echo $?
|