cdesktopenv/src
Martijn Dekker 523b7c7017 Part revert 39e467da
Even tough sh_subtmpfile() should only be relevant to command
substitutions, checking the sh.comsub flag instead of sh.subshell
before calling is not valid in all cases; subshells of command
substitutions run into problems in some oddly specific cases, e.g.,
both 'eval' and an external command must be involved. The ksh
regression tests didn't detect a problem, but both modernish[*] and
shellspec[*] have one regression test failure after that change.

Minimal reproducer, assuming a cat at /bin/cat:

    v=$(eval 'print output | /bin/cat')
    print -r "v=[$v]"

Actual output:

    output
    v=[]

Expected output:

    v=[output]
2022-07-24 06:09:59 +02:00
..
cmd Part revert 39e467da 2022-07-24 06:09:59 +02:00
lib Next round of minor tweaks and cleanups 2022-07-22 00:07:41 +02:00
Mamfile More misc. tweaks and cleanups 2022-07-14 17:34:08 +02:00