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-61-g


From: Eric Blake
Subject: [SCM] GNU Autoconf source repository branch, master, updated. v2.65-61-ga7902d0
Date: Mon, 26 Apr 2010 15:35:23 +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=a7902d0d7ff638caf59a42c0aa923b448ce42fea

The branch, master has been updated
       via  a7902d0d7ff638caf59a42c0aa923b448ce42fea (commit)
      from  090233631db59ebefcd97cb9efc85e5311e49747 (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 a7902d0d7ff638caf59a42c0aa923b448ce42fea
Author: Eric Blake <address@hidden>
Date:   Mon Apr 26 09:30:06 2010 -0600

    Clarify octal escapes with tr.
    
    * doc/autoconf.texi (Limitations of Usual Tools): Carriage return
    is portable in octal, but not newline.
    
    Signed-off-by: Eric Blake <address@hidden>

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

Summary of changes:
 ChangeLog         |    6 ++++++
 doc/autoconf.texi |   12 +++++++++---
 2 files changed, 15 insertions(+), 3 deletions(-)

diff --git a/ChangeLog b/ChangeLog
index d301e6b..85d2b11 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2010-04-26  Eric Blake  <address@hidden>
+
+       Clarify octal escapes with tr.
+       * doc/autoconf.texi (Limitations of Usual Tools): Carriage return
+       is portable in octal, but not newline.
+
 2010-04-22  Joel James Adamson  <address@hidden>  (tiny change)
 
        Add a paragraph to FAQ on Debugging configure scripts.
diff --git a/doc/autoconf.texi b/doc/autoconf.texi
index 1ffaeab..fa6015f 100644
--- a/doc/autoconf.texi
+++ b/doc/autoconf.texi
@@ -18393,13 +18393,16 @@ However, these problems are no longer of practical 
concern.
 @c ---------------
 @prindex @command{tr}
 @cindex carriage return, deleting
address@hidden newline, deleting
 @cindex deleting carriage return
 Not all versions of @command{tr} handle all backslash character escapes.
 For example, Solaris 10 @command{/usr/ucb/tr} falls over, even though
 Solaris contains more modern @command{tr} in other locations.
-Therefore, it is more portable to use octal escapes, even though this
-ties the result to ASCII, when using @command{tr} to delete
-newlines or carriage returns.
+Using octal escapes is more portable for carriage returns, since
address@hidden is the same for both ASCII and EBCDIC, and since use of
+literal carriage returns in scripts causes a number of other problems.
+But for other characters, like newline, using octal escapes ties the
+operation to ASCII, so it is better to use literal characters.
 
 @example
 $ @address@hidden echo moon; echo light; @} | /usr/ucb/tr -d '\n' ; echo}
@@ -18409,6 +18412,9 @@ $ @address@hidden echo moon; echo light; @} | 
/usr/bin/tr -d '\n' ; echo}
 moonlight
 $ @address@hidden echo moon; echo light; @} | /usr/ucb/tr -d '\012' ; echo}
 moonlight
+$ @kbd{nl='}
address@hidden'; @{ echo moon; echo light; @} | /usr/ucb/tr -d "$nl" ; echo}
+moonlight
 @end example
 
 Not all versions of @command{tr} recognize ranges of characters: at


hooks/post-receive
-- 
GNU Autoconf source repository




reply via email to

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