On 12/16/20 2:28 PM, Tomas Janousek wrote:
Hi,
bash-5.1 (and judging from git blame, all versions that ever supported
lastpipe, so 4.2+) fails to honor lastpipe when run without fd 0:
Thanks for the report.
The issue seems to be that execute_cmd.c:execute_pipeline insists on
saving/restorin
Hi,
bash-5.1 (and judging from git blame, all versions that ever supported
lastpipe, so 4.2+) fails to honor lastpipe when run without fd 0:
$ bash -O lastpipe -c 'echo x | read x; echo x=$x'
x=x
$ bash -O lastpipe -c 'echo x | read x; echo x=$x' <&-
x=
$ bash -O lastpipe