autoconf
[Top][All Lists]
Advanced

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

Re: AS_IF optimization


From: Eric Blake
Subject: Re: AS_IF optimization
Date: Tue, 07 Apr 2009 07:13:49 -0600
User-agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.6.666

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

According to Andreas Schwab on 4/7/2009 7:01 AM:
>> Which shells?  Solaris /bin/sh passed this test (to my surprise, since if
>> fails the similar test for 'case `false` in *);; esac').  Even cygwin's
>> super-old ash passed this, although it falls flat on a number of other
>> constructs.  Could this be a case of urban legend?
> 
> According to <http://www.in-ulm.de/~mascheck/bourne/> this was fixed in
> the System III shell.

Which pre-dates shell functions.  Therefore, since AS_IF is part of m4sh,
which guarantees a shell with functions, can elide empty else statements
with impunity.  Thanks for the research.

- --
Don't work too hard, make some time for fun as well!

Eric Blake             address@hidden
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAknbUY0ACgkQ84KuGfSFAYD9NwCgmSJs4DcZxEbGEg0X4QADilUh
/ycAn1LtsHwOIF5y3dZrrwhPwRe60jfy
=orUO
-----END PGP SIGNATURE-----




reply via email to

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