libtool-patches
[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: Ralf Wildenhues
Subject: Re: ${var:+"quo ted"} and similar, inside unquoted here-docs
Date: Sun, 29 Aug 2010 16:59:37 +0200
User-agent: Mutt/1.5.20 (2010-04-22)

* Ralf Wildenhues wrote on Sun, Aug 29, 2010 at 04:48:34PM CEST:
> With Solaris 10 sh (and others):
> 
> cat <<EOF
> ${var-"quo  ted"}
> EOF
> 
> "quo  ted"

I'm working around the issue in Libtool like this.

Cheers,
Ralf

    Work around yet another shell quoting portability issue.
    
    * configure.ac: Avoid nonportable quoted alternate variable
    value in unquoted here document, so Solaris 10 sh and Tru64
    ksh do not print spurious extra quotes.

diff --git a/configure.ac b/configure.ac
index e13ad43..87f3ce1 100644
--- a/configure.ac
+++ 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])
+timestamp_string=
+if test -n "$TIMESTAMP"; then
+  timestamp_string=" (Build:$TIMESTAMP)"
+fi
+AS_BOX([Configuring AC_PACKAGE_TARNAME$timestamp_string AC_PACKAGE_VERSION])
 echo
 AC_SUBST([TIMESTAMP])
 AC_SUBST([package_revision])



reply via email to

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