commit bash-20130125 snapshot

This commit is contained in:
Chet Ramey
2013-02-05 16:44:34 -05:00
parent f0c4de40a4
commit 1a81420a36
25 changed files with 421 additions and 66 deletions
+17
View File
@@ -0,0 +1,17 @@
# make sure subshells at the end of pipelines run any exit traps they set
: | { trap 'echo exit subshell 1' EXIT; exit; }; echo current shell
: | { trap 'echo exit subshell 2' EXIT; exit; }; echo current shell
: | { trap 'echo exit subshell 3' EXIT; exit; } | : ; echo current shell
: | { trap 'echo exit subshell 4' EXIT; exit; } | : ; echo current shell
trap 'echo inherited exit trap' EXIT
: | { exit; } ; echo outside 1
: | ( exit; ) ; echo outside 2
: | { exit; } | : ; echo outside 3
: | ( exit; ) | : ; echo outside 4
trap - EXIT