mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-07-31 15:33:37 +02:00
commit bash-20201218 snapshot
This commit is contained in:
@@ -31,6 +31,7 @@ i killed it
|
||||
./jobs5.sub: line 40: wait: %8: no such job
|
||||
2: ok 2
|
||||
2: ok 3
|
||||
127
|
||||
child1 exit status 0
|
||||
[1]+ Running sleep 20 &
|
||||
./jobs7.sub: line 5: fg: no current jobs
|
||||
|
||||
@@ -59,3 +59,8 @@ disown -a
|
||||
|
||||
unset bgpid1 bgpid2 bgpid3
|
||||
unset wpid
|
||||
|
||||
# now that we have no jobs, make sure that wait -n -p var leaves var unset
|
||||
jobs
|
||||
wait -n -p wpid
|
||||
echo $wpid $?
|
||||
|
||||
@@ -18,3 +18,5 @@ A2
|
||||
B1
|
||||
B2
|
||||
HI -- 42 -- 0 42
|
||||
x=x
|
||||
x=x
|
||||
|
||||
@@ -71,3 +71,4 @@ ${THIS_SH} ./lastpipe1.sub
|
||||
echo lastpipe1.sub returns $?
|
||||
|
||||
${THIS_SH} ./lastpipe2.sub
|
||||
${THIS_SH} ./lastpipe3.sub
|
||||
|
||||
@@ -0,0 +1,11 @@
|
||||
# problem in bash-5.1 running lastpipe in subshell if fd 0 is closed
|
||||
|
||||
shopt -s lastpipe
|
||||
exec 0<&-
|
||||
|
||||
echo x | read x
|
||||
echo x=$x
|
||||
unset x
|
||||
|
||||
echo x | cat | read x
|
||||
echo x=$x
|
||||
Reference in New Issue
Block a user