Re: ${var:+"quo ted"} and similar, inside unquoted here-docs

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

 



On 08/29/2010 08:59 AM, Ralf Wildenhues wrote:
+++ b/configure.ac
@@ -113,7 +113,11 @@ case $lt_alpha in
      TIMESTAMP=
      ;;
  esac
-AS_BOX([Configuring AC_PACKAGE_TARNAME${TIMESTAMP:+" (Build:$TIMESTAMP)"} AC_PACKAGE_VERSION])

According to 'git gui blame configure.ac', libtool has been using ${a:+b} since July 2004, with no bug reports about a "bad substitution" from a less-than-stellar shell (in fact, libtool's use dates back to the days when autoconf didn't even enforce shell function support). Thanks for this additional anecdotal evidence that autoconf's recent move to document that : is reliable for null substitutions is reasonable for all shells that support functions.

--
Eric Blake   eblake@xxxxxxxxxx    +1-801-349-2682
Libvirt virtualization library http://libvirt.org

_______________________________________________
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