[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.
Cheers,
Keith.
- Re: sh portability questions, (continued)
- Re: sh portability questions, Paul Eggert, 2005/09/27
- Re: sh portability questions, Akim Demaille, 2005/09/28
- Re: sh portability questions, Paul Eggert, 2005/09/28
- Re: sh portability questions, Ralf Wildenhues, 2005/09/28
- Re: sh portability questions, Andreas Schwab, 2005/09/28
- Re: sh portability questions, Akim Demaille, 2005/09/28
- Re: sh portability questions, Ralf Wildenhues, 2005/09/28
- Re: sh portability questions,
Keith Marshall <=