]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
(Slashes): New section.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 20 Apr 2004 20:14:31 +0000 (20:14 +0000)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 20 Apr 2004 20:14:31 +0000 (20:14 +0000)
doc/autoconf.texi

index 701569dd742a4d2cd6213e4bedde5f8727b8088a..09a7bfacadad3070f37e5fb79b3c460e0f8abadf 100644 (file)
@@ -9269,6 +9269,7 @@ There are other sources of documentation about shells.  See for instance
 * Shell Substitutions::         Variable and command expansions
 * Assignments::                 Varying side effects of assignments
 * Parentheses::                 Parentheses in shell scripts
+* Slashes::                     Slashes in shell scripts
 * Special Shell Variables::     Variables you should not change
 * Limitations of Builtins::     Portable use of not so portable /bin/sh
 * Limitations of Usual Tools::  Portable use of portable tools
@@ -10037,6 +10038,29 @@ esac
 but the @code{(} in this example is not portable to many older Bourne
 shell implementations.  It can be omitted safely.
 
+@node Slashes
+@section Slashes in Shell Scripts
+@cindex Shell slashes
+
+Unpatched Tru64 5.1 @command{sh} omits the last slash of command-line
+arguments that contain two trailing slashes:
+
+@example
+$ echo / // /// //// .// //.
+/ / // /// ./ //.
+$ x=//
+$ eval "echo \$x"
+/
+$ set -x
+$ echo abc | tr -t ab //
++ echo abc
++ tr -t ab /
+/bc
+@end example
+
+However, our understanding is that patches are available, so perhaps
+it's not worth worrying about working around this horrendous bug.
+
 @node Special Shell Variables
 @section Special Shell Variables
 @cindex Shell variables