bug-bash
[Top][All Lists]
Advanced

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

Re: declare a="$b" if $a previously set as array


From: Stephane Chazelas
Subject: Re: declare a="$b" if $a previously set as array
Date: Tue, 9 Dec 2014 13:40:51 +0000
User-agent: Mutt/1.5.21 (2010-09-15)

2014-12-09 20:55:02 +0800, konsolebox:
[...]
> As for the other things, I was actually only concerned about the
> dangerous behavior that's synonymous to "eval $b" so I didn't really
> thought about discussing them.  And I'm only referring to Bash when I
> made the suggestions.  Other shells certainly does not support local
> scopes.
[...]

Not sure what you mean by that last sentence, but all of dash,
yash, mksh, pdksh, AT&T ksh, posh, zsh (so virtually all modern
Bourne-like shells) do support local scopes each with variations
of behaviour and syntax.

-- 
Stephane



reply via email to

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