bug-autoconf
[Top][All Lists]
Advanced

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

RE: Bug in config.status (autoconf 2.49b, test 21)


From: Tim Van Holder
Subject: RE: Bug in config.status (autoconf 2.49b, test 21)
Date: Mon, 15 Jan 2001 19:32:31 +0100

> As a matter of fact, this is somewhat wrong.  If a plain
> foo='exit 1' || echo fail
> works as expected, we're outta trouble.
That does work (I expect you meant `exit 1] , not 'exit 1').

> In fact, I'm a bit lost.  Where did you see this construct exactly?
It's the construct emitted by AS_EXIT.

> There is a problem with the port.

Quite. It seems 'exit' without value always returns 0 for us, not $?.
Strange.

bash-2.04$ foo=`exit 1` ||echo fail
fail
bash-2.04$ foo=`(exit 1)` ||echo fail
fail
bash-2.04$ foo=`(exit 1); exit` ||echo fail
bash-2.04$ foo=`{ (exit 1); exit; }` ||echo fail
bash-2.04$ exit

I'll report this to the port's maintainer.




reply via email to

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