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/restoring stdin which obviously fails when there's no stdin open at all:

That's not quite it, at least for the general case, but you're on the right
track. I'll look at changing this for the next version.

Chet

--
``The lyf so short, the craft so long to lerne.'' - Chaucer
                 ``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, UTech, CWRU    c...@case.edu    http://tiswww.cwru.edu/~chet/

Reply via email to