commit bash-20201218 snapshot

This commit is contained in:
Chet Ramey
2020-12-25 18:17:33 -05:00
parent 975643bb2b
commit 3c5683a47b
29 changed files with 1487 additions and 1447 deletions
+1
View File
@@ -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
+5
View File
@@ -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 $?
+2
View File
@@ -18,3 +18,5 @@ A2
B1
B2
HI -- 42 -- 0 42
x=x
x=x
+1
View File
@@ -71,3 +71,4 @@ ${THIS_SH} ./lastpipe1.sub
echo lastpipe1.sub returns $?
${THIS_SH} ./lastpipe2.sub
${THIS_SH} ./lastpipe3.sub
+11
View File
@@ -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