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
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 '
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" &&
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
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.