|
From: | Grisha Levit |
Subject: | Re: coproc and existing variables |
Date: | Tue, 17 May 2016 12:31:31 -0400 |
On Tue, May 17, 2016 at 11:56 AM, Chet Ramey <chet.ramey@case.edu> wrote:Should the coproc code remove the
nameref attribute and use the name supplied to the coproc command as the
name of the array, or should it resolve the nameref and use `x' as the
name of the coproc?
I think the latter makes sense since that is what usually happens with assignments to namerefs pointing to unset variables.i.e.:declare -n ref=xref=(63 64)producing the same result asdeclare -n ref=xcoproc ref { :; }seems reasonable.
[Prev in Thread] | Current Thread | [Next in Thread] |