mirror of
https://https.git.savannah.gnu.org/git/bash.git
synced 2026-11-29 03:07:47 +01:00
commit bash-20201218 snapshot
This commit is contained in:
1 parent
975643bb2b
commit
3c5683a47b
29 files changed
+1487
-1447
No files matched your search
@@ -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