]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* doc/autoconf.texi (File System Conventions): Clarify the use of
authorTim Van Holder <tim.van.holder@pandora.be>
Thu, 20 Sep 2001 15:39:46 +0000 (15:39 +0000)
committerTim Van Holder <tim.van.holder@pandora.be>
Thu, 20 Sep 2001 15:39:46 +0000 (15:39 +0000)
  PATH_SEPARATOR.
  (Special Shell Variables[PATH_SEPARATOR]): Ditto.
  (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
  be used instead of ':'.
* lib/autotest/general.m4: Replace occurrences of ':' in
  AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.

ChangeLog
doc/autoconf.texi
lib/autotest/general.m4

index f591877842058a3e2259da062d36ebcc6d896bd6..7aef5e3d4c355188656de810a3ca45af3b368dbf 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,13 @@
+2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
+
+       * doc/autoconf.texi (File System Conventions): Clarify the use of
+       PATH_SEPARATOR.
+       (Special Shell Variables[PATH_SEPARATOR]): Ditto.
+       (Special Shell Variables[CDPATH]): Mention that $PATH_SEPRATOR should
+       be used instead of ':'.
+       * lib/autotest/general.m4: Replace occurrences of ':' in
+       AUTOTEST_PATH with $PATH_SEPARATOR at test suite startup.
+
 2001-09-20  Tim Van Holder  <tim.van.holder@pandora.be>
 
        * tests/atgeneral.m4: Add basic support for test ranges (e.g. 7-34) as
index b077839df019a2deac8212c0ab0e951b01ec612d..9a79712249d8c50702ed7dd8d4cccad10da10592 100644 (file)
@@ -7700,10 +7700,9 @@ Make sure you quote the brackets if appropriate and keep the backslash as
 first character (@pxref{Limitations of Builtins}).
 
 Also, because the colon is used as part of a drivespec, these systems don't
-use it as path separator.  When creating or accessing paths, use
-@code{$ac_path_separator} instead (or the @code{PATH_SEPARATOR} output
-variable).  @command{autoconf} sets this to the appropriate value (@samp{:}
-or @samp{;}) when it starts up.
+use it as path separator.  When creating or accessing paths, use the
+@code{PATH_SEPARATOR} output variable instead.  @command{configure} sets this
+to the appropriate value (@samp{:} or @samp{;}) when it starts up.
 
 File names need extra care as well.  While @sc{dos}-based environments
 that are Unixy enough to run @command{autoconf} (such as DJGPP) will
@@ -8060,8 +8059,8 @@ twice.
 
 @c FIXME: Which shells?  How do they behave?
 Setting @code{CDPATH} to the empty value is not enough for most shells.
-A simple colon is enough except for @code{zsh}, which prefers a leading
-dot:
+A simple path separator is enough except for @code{zsh}, which prefers a
+leading dot:
 
 @example
 zsh-3.1.6 % mkdir foo && (CDPATH=: cd foo)
@@ -8073,27 +8072,30 @@ zsh-3.1.6 %
 @end example
 
 @noindent
-(of course we could just @code{unset} @code{CDPATH}, since it also
+(of course we could just @command{unset} @code{CDPATH}, since it also
 behaves properly if set to the empty string).
 
 Life wouldn't be so much fun if @command{bash} and @command{zsh} had the
 same behavior:
 
 @example
+bash-2.02 % mkdir foo && (CDPATH=: cd foo)
 bash-2.02 % (CDPATH=:. cd foo)
 bash-2.02 % (CDPATH=.: cd foo)
 /tmp/foo
 @end example
 
-Therefore, a portable solution to neutralize @samp{CDPATH} is
+Of course, even better style would be to use @code{PATH_SEPARATOR} instead
+of a @samp{:}.
+Therefore, a portable solution to neutralize @code{CDPATH} is
 
 @example
-CDPATH=$@{ZSH_VERSION+.@}:
+CDPATH=$@{ZSH_VERSION+.@}$PATH_SEPARATOR
 @end example
 
 @noindent
 Note that since @command{zsh} supports @command{unset}, you may unset
-@samp{CDPATH} using @samp{:} as a fallback, see
+@code{CDPATH} using @code{PATH_SEPARATOR} as a fallback, see
 @ref{Limitations of Builtins}.
 
 @item IFS
@@ -8152,13 +8154,18 @@ hence read-only.  Do not use it.
 
 @item PATH_SEPARATOR
 @evindex PATH_SEPARATOR
-On DJGPP systems, the @code{PATH_SEPARATOR} variable can be set to
-either @samp{:} or @samp{;} to control the path separator @command{bash}
-uses to set up certain environment variables (such as
-@code{PATH}). Since this only works inside bash, you want autoconf to
-detect the regular @sc{dos} path separator @samp{;}, so it can be safely
-substituted in files that may not support @samp{;} as path separator. So
-either unset this variable or set it to @samp{;}.
+If it is not set, @command{configure} will detect the appropriate path
+separator for the build system and set the @code{PATH_SEPARATOR} output
+variable accordingly.
+
+On DJGPP systems, the @code{PATH_SEPARATOR} environment variable can be
+set to either @samp{:} or @samp{;} to control the path separator
+@command{bash} uses to set up certain environment variables (such as
+@code{PATH}).  Since this only works inside @command{bash}, you want
+@command{configure} to detect the regular @sc{dos} path separator
+(@samp{;}), so it can be safely substituted in files that may not support
+@samp{;} as path separator.  So it is recommended to either unset this
+variable or set it to @samp{;}.
 
 @item RANDOM
 @evindex RANDOM
index e9cca2b7e4031bb056fda8a8b0c576b1a0db99cc..14e4dc55c16954efc1ace4f666174ff0d2dc7a7e 100644 (file)
@@ -112,6 +112,8 @@ do
   . ./$at_file || AS_ERROR([invalid content: $at_file])
 done
 
+AUTOTEST_PATH=`echo $AUTOTEST_PATH |tr ':' $PATH_SEPARATOR`
+
 # Use absolute file notations, as the test might change directories.
 at_srcdir=`cd "$srcdir" && pwd`
 at_top_srcdir=`cd "$top_srcdir" && pwd`