bug-bash
[Top][All Lists]
Advanced

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

Re: [patch] /* XXX - possibly run Coproc->name through word expansion? *


From: Piotr Grzybowski
Subject: Re: [patch] /* XXX - possibly run Coproc->name through word expansion? */
Date: Tue, 19 Apr 2016 20:03:31 +0200

On Tue, Apr 19, 2016 at 7:02 PM, Chet Ramey <chet.ramey@case.edu> wrote:
On 4/16/16 8:13 AM, Piotr Grzybowski wrote:
>
​ [..]​

> - expand the name given to coproc

I'll consider this for a future version of bash.
 
​thanks. maybe someone else finds it useful?
 

> - if it expands to a legal identifier create the coproc

This isn't necessary; there's no reason to restrict a coproc name to
something stricter than the set of valid executable names.  I suppose
I could see restricting it to the same set of valid names as shell
functions. 

​ok, but I thought along these lines: if the name is not a valid identifier, how are you going to refer by this name to the array with the descriptors? but maybe checking legal_identifier is too much.

cheers,
pg



reply via email to

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