bug-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: funsub questions


From: Chet Ramey
Subject: Re: funsub questions
Date: Mon, 18 Dec 2023 09:56:22 -0500
User-agent: Mozilla Thunderbird

On 12/17/23 10:47 PM, Zachary Santer wrote:

As a follow-on question, why would this be implemented only now? From the
very beginning, capturing the stdout of an external command involved
forking a subshell, and soon (assuming funsubs remain when 5.3 is released)
it won't have to. It feels like something changed to make this feasible
when it hadn't been before.

I suppose it was mostly the work I did to make command substitution parsing
call the bison parser recursively instead of using the ad-hoc scheme that
had been in place for years.

Once you identify all the relevant parser state, the alternate nofork
command substitution becomes easier.

Time and motivation are always factors, of course.

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

Attachment: OpenPGP_signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]