bug-bash
[Top][All Lists]
Advanced

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

Re: Passing variables by reference conflicts with local


From: Greg Wooledge
Subject: Re: Passing variables by reference conflicts with local
Date: Mon, 3 May 2010 08:21:05 -0400
User-agent: Mutt/1.4.2.3i

On Sat, May 01, 2010 at 04:26:16AM -0500, Dennis Williamson wrote:
> I prefer to avoid using eval by using declare, but declare inside a
> function makes the variable local. Wouldn't it be nice to have a
> global flag (declare -g) like zsh's typeset -g.

Yeah.  It definitely would.  (This comes up every once in a while in
IRC, too.)




reply via email to

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