22 Aralık 2022 Perşembe tarihinde Dan Church <h...@gmx.com> 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" >"$sub2"
>    echo 'echo "3rd script starting"' >"$sub3"
>
>    . "$sub1"
>
> "1st script still executing" will never be printed.
>

Or

    $ bash -c '(. <(echo ": && uname"); echo x)'
    Linux
    $

x is never printed. Looks like another bug caused by aggressive subshell
optimizations


-- 
Oğuz

Reply via email to