Re: Bug: Subshell won't continue after .-sourcing a file

2022-12-22 Thread Chet Ramey
On 12/22/22 12:37 PM, Dan Church wrote: Awesome Chet! Confirmed fixed by your patch. Do you think you'll include my test for the bug? Thanks for the test; it was very useful for testing behavior. I'm going to incorporate a version of yours/Oguz's test into an existing test script I have. It a

Re: Bug: Subshell won't continue after .-sourcing a file

2022-12-22 Thread Dan Church
Awesome Chet! Confirmed fixed by your patch. Do you think you'll include my test for the bug? Here is an updated script that uses proper quoting everywhere: sub1=$(mktemp) sub2=$(mktemp) sub3=$(mktemp) echo "( echo '1st script executing' ; . ${sub2@Q} ; echo '

Re: Bug: Subshell won't continue after .-sourcing a file

2022-12-22 Thread Chet Ramey
On 12/21/22 11:44 PM, Oğuz wrote: 22 Aralık 2022 Perşembe tarihinde Dan Church yazdı: Repro: sub1=$(mktemp) sub2=$(mktemp) sub3=$(mktemp) echo '( echo "1st script executing" ; . '"$sub2"' ; echo "1st script still executing" )' >"$sub1" echo 'echo "2nd script starting" &&

Re: Bug: Subshell won't continue after .-sourcing a file

2022-12-21 Thread Oğuz
22 Aralık 2022 Perşembe tarihinde Dan Church yazdı: > > Repro: > >sub1=$(mktemp) >sub2=$(mktemp) >sub3=$(mktemp) > >echo '( echo "1st script executing" ; . '"$sub2"' ; echo "1st script > still executing" )' >"$sub1" >echo 'echo "2nd script starting" && ${THIS_SH} '"$sub3" >"$su

Bug: Subshell won't continue after .-sourcing a file

2022-12-21 Thread Dan Church
Hi! I have definitely found a bug in bash. I have a git commit that adds a test for this already: https://codeberg.org/h3xx/bash/commit/e573113317895072fd5c4641bf6d196875f5cc2d After fixing the issue, I'd be glad if you would include my git commit as a way of crediting me with the discovery.