[Top][All Lists]

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

Re: OpenBSD shell, errexit, and && in if clause

From: Ralf Wildenhues
Subject: Re: OpenBSD shell, errexit, and && in if clause
Date: Wed, 10 May 2006 23:18:02 +0200
User-agent: Mutt/1.5.11+cvs20060403

* Alexandre Duret-Lutz wrote on Wed, May 10, 2006 at 10:36:19PM CEST:
> >>> "RW" == Ralf Wildenhues <address@hidden> writes:

>  RW> OpenBSD /bin/sh aka /bin/ksh has an interesting bug: the second "false"
>  RW> in the script below wrongly causes the shell to exit, but not the first
>  RW> one, so "two" isn't printed.

>  RW> It doesn't matter if "false" is a builtin here, or replaced by an
>  RW> external process that happens to fail.  Same issue with a "for" loop
>  RW> (but, surprisingly, not with an "until" loop).
> This looks like an issue similar to the one that caused this :

Yep, in former times such bugs seem to have been more prevalent.

> 2002-03-17  Alexandre Duret-Lutz  <address@hidden>
>         * tests/dirforbid.test: Workaround for NetBSD sh bug.
>         Fixes PR automake/305.
> (I love the suggested "fix" on the initial submission :))


>  RW> OK to apply these patches to Autoconf and Automake, respectively?
>  RW> Apologies to Alexandre for changing the same lines of depcomp[67].test
>  RW> for the third time; at least now I have a good reason to do so.  ;-)
> Sure :)

I've applied the Automake patch now too, thanks!


reply via email to

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