From: Akim Demaille Date: Thu, 2 Sep 2004 07:30:25 +0000 (+0000) Subject: * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and X-Git-Tag: AUTOCONF-2.59c~633 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fac3ef22a9964b8b4114f6b51d557dd4a4def009;p=thirdparty%2Fautoconf.git * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and "case" to restore ordering. Reported by Stepan Kasal. --- diff --git a/ChangeLog b/ChangeLog index 59f73a5f0..17fb8aadd 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,12 @@ +2004-09-02 Akim Demaille + + * doc/autoconf.texi (Limitations of Builtins): Swap "cd" and + "case" to restore ordering. + Reported by Stepan Kasal. + 2004-08-26 Akim Demaille - * doc/autoconf.texi: Typos and stylos. + * doc/autoconf.texi: Minor typos and stylos. 2004-08-20 Paul Eggert diff --git a/THANKS b/THANKS index 554181d01..eb0475115 100644 --- a/THANKS +++ b/THANKS @@ -180,6 +180,7 @@ Sander Niemeijer niemeijer@science-and-technology.nl Scott Bambrough scottb@corelcomputer.com Scott Stanton stanton@scriptics.com Simon Leinen simon@lia.di.epfl.ch +Stepan Kasal kasal@ucw.cz Stephen Gildea filtered@against.spam Steve Chamberlain sac@cygnus.com Steve Huston shuston@riverace.com diff --git a/doc/autoconf.texi b/doc/autoconf.texi index 23c94ebf1..aac289033 100644 --- a/doc/autoconf.texi +++ b/doc/autoconf.texi @@ -10495,28 +10495,6 @@ if @var{command}; then (exit 1); else :; fi The use of @samp{break 2} etc.@: is safe. -@item @command{cd} -@c --------------------------------- -@prindex @command{cd} -@acronym{POSIX} 1003.1-2001 requires that @command{cd} must support -the @option{-L} (``logical'') and @option{-P} (``physical'') options, -with @option{-L} being the default. However, traditional shells do -not support these options, and their @command{cd} command has the -@option{-P} behavior. - -Portable scripts should assume neither option is supported, and should -assume neither behavior is the default. This can be a bit tricky, -since the @acronym{POSIX} default behavior means that, for example, -@samp{ls ..} and @samp{cd ..} may refer to different directories if -the current logical directory is a symbolic link. It is safe to use -@command{cd @var{dir}} if @var{dir} contains no @file{..} components. -Also, Autoconf-generated scripts check for this problem when computing -variables like @code{ac_top_srcdir} (@pxref{Configuration Actions}), -so it is safe to @command{cd} to these variables. - -Also please see the discussion of the @command{pwd} command. - - @item @command{case} @c ----------------- @prindex @command{case} @@ -10562,6 +10540,28 @@ $ @kbd{case foo in (foo) echo foo;; esac} @end example +@item @command{cd} +@c --------------- +@prindex @command{cd} +@acronym{POSIX} 1003.1-2001 requires that @command{cd} must support +the @option{-L} (``logical'') and @option{-P} (``physical'') options, +with @option{-L} being the default. However, traditional shells do +not support these options, and their @command{cd} command has the +@option{-P} behavior. + +Portable scripts should assume neither option is supported, and should +assume neither behavior is the default. This can be a bit tricky, +since the @acronym{POSIX} default behavior means that, for example, +@samp{ls ..} and @samp{cd ..} may refer to different directories if +the current logical directory is a symbolic link. It is safe to use +@command{cd @var{dir}} if @var{dir} contains no @file{..} components. +Also, Autoconf-generated scripts check for this problem when computing +variables like @code{ac_top_srcdir} (@pxref{Configuration Actions}), +so it is safe to @command{cd} to these variables. + +Also please see the discussion of the @command{pwd} command. + + @item @command{echo} @c ----------------- @prindex @command{echo}