Re: {ref}<&- does not work on array reference subscripts
From:
Chet Ramey
Subject:
Re: {ref}<&- does not work on array reference subscripts
Date:
Thu, 2 Jun 2016 20:26:24 -0400
User-agent:
Mozilla/5.0 (Macintosh; Intel Mac OS X 10.11; rv:45.0) Gecko/20100101 Thunderbird/45.1.1
On 6/1/16 6:44 PM, Grisha Levit wrote:
> Yikes, I missed the |exec| command in my example, that would certainly make
> it confusing..
>
> What I meant was that the assignment works (i.e. the nameref is followed
> correctly), but the relevant code
> <http://git.savannah.gnu.org/cgit/bash.git/tree/redir.c?h=devel#n1368>
> doesn’t handle retrieving the value of such a nameref when it needs to do
> so to close the descriptor:
Yes, you're right. The fix is very similar to part of the fix for the
unset builtin.
--
``The lyf so short, the craft so long to lerne.'' - Chaucer
``Ars longa, vita brevis'' - Hippocrates
Chet Ramey, ITS, CWRU chet@case.edu http://cnswww.cns.cwru.edu/~chet/