2014-12-10 06:33:00 +0800, konsolebox:
[...]
> > 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.
>
> I know ksh, pdks
2014-12-10 10:43:45 +, Stephane Chazelas:
[...]
> In particular, it mandates a "local" builtin. So sh scripts that
> use "local" are guaranteed to work in Debian. However note that
> behaviour for "local foo=bar" is unspecified there, so sh
> scripts for Debian should use "local foo; foo=bar" (
On Wed, Dec 10, 2014 at 6:43 PM, Stephane Chazelas
wrote:
> 2014-12-10 06:33:00 +0800, konsolebox:
> [...]
>> > 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