Re: AS_IF optimization

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

 



-----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             ebb9@xxxxxxx
-----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-----


_______________________________________________
Autoconf mailing list
Autoconf@xxxxxxx
http://lists.gnu.org/mailman/listinfo/autoconf

[Index of Archives]     [GCC Help]     [Kernel Discussion]     [RPM Discussion]     [Red Hat Development]     [Yosemite News]     [Linux USB]     [Samba]

  Powered by Linux