A strange thing to do, but nevertheless a segfault is not a good thing: $ { echo 'echo a'; echo 'exec 0>&-'; echo 'echo b'; } | bash a Segmentation fault $ rpm -q bash bash-4.4.23-alt1.noarch