[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
set -e glitches (was: install-sh -C)
From: |
Ralf Wildenhues |
Subject: |
set -e glitches (was: install-sh -C) |
Date: |
Wed, 25 Oct 2006 18:24:28 +0200 |
User-agent: |
Mutt/1.5.13 (2006-10-09) |
* Akim Demaille wrote on Wed, Oct 25, 2006 at 05:35:31PM CEST:
> >
> >| if test -n "$required"
> >| then
> >[...]
> >| if ( bison --version ); then :; else exit 77; fi
> >
> >instead of
> >| ( bison --version ) || exit 77
> >
> >because of the OpenBSD /bin/sh bug with `set -e' [...]
> Gee! That's a new one :( I know that
>
> false && echo
>
> is not safe with -e (and actually, it does seem fair), but I did not
> know
>
> false || echo
>
> could be a problem.
Oops. You are right, and I was wrong. Sorry about this error of mine.
I retract any claim that
false || echo
could be a problem.
> BTW, the example in the Autoconf doc would
> be much clearer (IMHO) with true and false instead of test.
Probably.
Cheers,
Ralf
- install-sh -C, Akim Demaille, 2006/10/22
- Re: install-sh -C, Ralf Wildenhues, 2006/10/22
- Re: install-sh -C, Akim Demaille, 2006/10/22
- Re: install-sh -C, Ralf Wildenhues, 2006/10/22
- Re: install-sh -C, Akim Demaille, 2006/10/23
- Re: install-sh -C, Ralf Wildenhues, 2006/10/23
- Re: install-sh -C, Ralf Wildenhues, 2006/10/23
- Re: install-sh -C, Akim Demaille, 2006/10/25
- Re: install-sh -C, Stepan Kasal, 2006/10/25
- Re: install-sh -C, Akim Demaille, 2006/10/27
- set -e glitches (was: install-sh -C),
Ralf Wildenhues <=