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-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/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