]> git.ipfire.org Git - thirdparty/bash.git/blame - tests/lastpipe3.sub
bash-5.2 distribution sources and documentation
[thirdparty/bash.git] / tests / lastpipe3.sub
CommitLineData
74091dd4
CR
1# problem in bash-5.1 running lastpipe in subshell if fd 0 is closed
2
3shopt -s lastpipe
4exec 0<&-
5
6echo x | read x
7echo x=$x
8unset x
9
10echo x | cat | read x
11echo x=$x