summaryrefslogtreecommitdiffstats
path: root/tests/lastpipe1.sub
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--tests/lastpipe1.sub5
1 files changed, 5 insertions, 0 deletions
diff --git a/tests/lastpipe1.sub b/tests/lastpipe1.sub
new file mode 100644
index 0000000..43711e3
--- /dev/null
+++ b/tests/lastpipe1.sub
@@ -0,0 +1,5 @@
+# with lastpipe set, exit at the end of a pipeline exits
+# the calling shell
+shopt -s lastpipe
+exit 142 | exit 14
+echo after: $?