From a5603f6ee546c8bb090f892c287105752852b458 Mon Sep 17 00:00:00 2001 From: Steven Willis Date: Thu, 7 Jun 2018 11:48:13 -0400 Subject: [PATCH] EXIT traps that print to stdout shouldn't break process substitution --- fast/trap_subshell_comment_test.sh | 6 ++++++ 1 file changed, 6 insertions(+) create mode 100755 fast/trap_subshell_comment_test.sh diff --git a/fast/trap_subshell_comment_test.sh b/fast/trap_subshell_comment_test.sh new file mode 100755 index 0000000..6e0f110 --- /dev/null +++ b/fast/trap_subshell_comment_test.sh @@ -0,0 +1,6 @@ +source "$rvm_path/scripts/rvm" + +eval 'shell_session_update() { echo hi'$'\n''}' # status=0 +typeset -f shell_session_update # status=0 + +echo $(cd . > /dev/null && echo a) # status=0; match=/^a$/