autoconf-commit
[Top][All Lists]
Advanced

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

[SCM] GNU Autoconf source repository branch, master, updated. v2.65-105-


From: Ralf Wildenhues
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.65-105-gd11a65c
Date: Wed, 23 Jun 2010 18:42:17 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "GNU Autoconf source repository".

http://git.sv.gnu.org/gitweb/?p=autoconf.git;a=commitdiff;h=d11a65ced676409559ac09150b93be9c1eb99736

The branch, master has been updated
       via  d11a65ced676409559ac09150b93be9c1eb99736 (commit)
      from  c14e7a1c8a936f1a05634ee8fe72298a5b0fdc9b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit d11a65ced676409559ac09150b93be9c1eb99736
Author: Ralf Wildenhues <address@hidden>
Date:   Wed Jun 23 19:55:02 2010 +0200

    Further improve docs about nested double-quotes and backquotes.
    
    * doc/autoconf.texi (Shellology): Remove anchor for pdksh.
    Move quoting bug example to ...
    (Shell Substitutions): ... here.  Document which behavior is
    specified by Posix.
    
    Signed-off-by: Ralf Wildenhues <address@hidden>

-----------------------------------------------------------------------

Summary of changes:
 ChangeLog         |    6 ++++++
 doc/autoconf.texi |   35 +++++++++++++++++------------------
 2 files changed, 23 insertions(+), 18 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index 21aa16a..d3983c1 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,11 @@
 2010-06-23  Ralf Wildenhues  <address@hidden>
 
+       Further improve docs about nested double-quotes and backquotes.
+       * doc/autoconf.texi (Shellology): Remove anchor for pdksh.
+       Move quoting bug example to ...
+       (Shell Substitutions): ... here.  Document which behavior is
+       specified by Posix.
+
        Coverage for Fortran compiler macros.
        * tests/fortran.at (AC_OPENMP and Fortran 77)
        (AC_OPENMP and Fortran): Simplify, using AT_CHECK_CONFIGURE.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 81b0845..34ae872 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -14639,7 +14639,6 @@ the standard shell conform to Posix.
 
 @item Pdksh
 @prindex @samp{pdksh}
address@hidden
 A public-domain clone of the Korn shell called @command{pdksh} is widely
 available: it has most of the @samp{ksh88} features along with a few of
 its own.  It usually sets @code{KSH_VERSION}, except if invoked as
@@ -14647,20 +14646,7 @@ its own.  It usually sets @code{KSH_VERSION}, except 
if invoked as
 Posix compatibility by running @samp{set -o posix}.  Unfortunately, with
 @command{pdksh} 5.2.14 (the latest stable version as of January 2007)
 Posix mode is buggy and causes @command{pdksh} to depart from Posix in
-at least one respect:
-
address@hidden
-$ @kbd{echo "`echo \"hello\"`"}
-hello
-$ @kbd{set -o posix}
-$ @kbd{echo "`echo \"hello\"`"}
-"hello"
address@hidden example
-
-The last line of output contains spurious quotes.  This is yet another
-reason why portable shell code should not contain
address@hidden"address@hidden"@dots{}\"@dots{}`"} constructs (@pxref{Shell
-Substitutions}).
+at least one respect, see @ref{Shell Substitutions}.
 
 @item Zsh
 @cindex Zsh
@@ -15163,9 +15149,22 @@ ksh: bar | sed 's, ,,': cannot execute
 @end example
 
 @noindent
-Worse yet, not all shells understand @code{"address@hidden"@dots{}\"@dots{}`"}
-the same way (@pxref{pdksh}).  There is just no portable way to use 
double-quoted
-strings inside double-quoted back-quoted expressions (pfew!).
+Posix does not specify behavior for this sequence.  On the other hand,
+behavior for @code{"address@hidden"@dots{}\"@dots{}`"} is specified by Posix,
+but in practice, not all shells understand it the same way: pdksh 5.2.14
+prints spurious quotes when in Posix mode:
+
address@hidden
+$ @kbd{echo "`echo \"hello\"`"}
+hello
+$ @kbd{set -o posix}
+$ @kbd{echo "`echo \"hello\"`"}
+"hello"
address@hidden example
+
address@hidden
+There is just no portable way to use double-quoted strings inside
+double-quoted back-quoted expressions (pfew!).
 
 @table @code
 @item $@@


hooks/post-receive
-- 
GNU Autoconf source repository



reply via email to

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