bug-bash
[Top][All Lists]
Advanced

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

Re: param expansion with single-character special vars in the environmen


From: Grisha Levit
Subject: Re: param expansion with single-character special vars in the environment
Date: Wed, 27 Apr 2016 16:41:48 -0400


On Wed, Apr 27, 2016 at 3:49 PM, Eduardo A. Bustamante López <dualbus@gmail.com> wrote:
f() { echo $r; }; declare -n r; r=/ f 
 
I'm not sure about the tempenv variable.

That case doesn't seem to be an issue since assignments here just create regular variables without attributes.

$ a=(1); f() { declare -p a; }; a=(2) f
declare -x a="(2)"

reply via email to

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