autoconf
[Top][All Lists]
Advanced

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

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


From: Eric Blake
Subject: Re: ${var:+"quo ted"} and similar, inside unquoted here-docs
Date: Mon, 30 Aug 2010 11:21:09 -0600
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.8) Gecko/20100806 Fedora/3.1.2-1.fc13 Mnenhy/0.8.3 Thunderbird/3.1.2

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   address@hidden    +1-801-349-2682
Libvirt virtualization library http://libvirt.org



reply via email to

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