aboutsummaryrefslogtreecommitdiffstats
path: root/tests/exec9.sub
diff options
context:
space:
mode:
authorChet Ramey <chet.ramey@case.edu>2011-11-22 19:11:26 -0500
committerChet Ramey <chet.ramey@case.edu>2011-11-22 19:11:26 -0500
commit495aee441b75276e38c75694ccb455bb6463fdb9 (patch)
treef12907dbf62388e6c65dfa1c5e1199509936707e /tests/exec9.sub
parent30d188c2932d6ef609d894fefeb7e7b03ccff463 (diff)
downloadandroid_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.tar.gz
android_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.tar.bz2
android_external_bash-495aee441b75276e38c75694ccb455bb6463fdb9.zip
Bash-4.2 distribution sources and documentation
Diffstat (limited to 'tests/exec9.sub')
-rw-r--r--tests/exec9.sub20
1 files changed, 20 insertions, 0 deletions
diff --git a/tests/exec9.sub b/tests/exec9.sub
new file mode 100644
index 0000000..b8d20b4
--- /dev/null
+++ b/tests/exec9.sub
@@ -0,0 +1,20 @@
+# 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 $?