Re: sh portability questions

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

 



On Wednesday 28 September 2005 10:04 am, Andreas Schwab wrote:
> Akim Demaille <akim@xxxxxxxxxxxxx> writes:
> > if (local foo) >/dev/null 2>&1; then :; else
> >   local () { true;  }
> > fi
>
> Note that local is only valid in function context, so this will always
> produce a failure.

For pedant points, that's true for `bash', but not so for `ksh' (at least, 
not on the SunOS 5 box I checked on).  :-)

Of course, that's pretty much irrelevant, since you have to cater to all 
likely scenarii.

Cheers,
Keith.


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux