[Top][All Lists]

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

Re: sh portability questions

From: Keith Marshall
Subject: Re: sh portability questions
Date: Thu, 29 Sep 2005 19:20:50 +0100

On Wednesday 28 September 2005 10:04 am, Andreas Schwab wrote:
> Akim Demaille <address@hidden> 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.


reply via email to

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