On Mon, Nov 28, 2011 at 2:58 PM, Dejan Muhamedagic <deja...@fastmail.fm> wrote:
>> Why? It seems "typeset" is the POSIX thing, while "local" is a BASH-ism. So 
>> what's wrong with local variables?
>
> local is almost certainly not a bashism. At least I can recall
> once changing typeset to local in some RA.

IIRC, then "local foo=bar" is a bashism, whereas "local foo; foo=bar"
is POSIX compliant. At least that's what checkbashisms seems to
indicate.

Cheers,
Florian

--
Need help with High Availability?
http://www.hastexo.com/now
_______________________________________________
Linux-HA mailing list
Linux-HA@lists.linux-ha.org
http://lists.linux-ha.org/mailman/listinfo/linux-ha
See also: http://linux-ha.org/ReportingProblems

Reply via email to