>>> Florian Haas <flor...@hastexo.com> schrieb am 28.11.2011 um 15:05 in 
>>> Nachricht
<capuexz9bm3suof0fteqvbjcpyo9rlz9gazk3mc5td8oyosi...@mail.gmail.com>:
> 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.

Hmmm: HP-UX POSIX Shell uses "typeset -i e=0", and I always thought that's just 
POSIX.

Ulrich


_______________________________________________
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