]> git.ipfire.org Git - thirdparty/autoconf.git/commitdiff
* tests/atgeneral.m4 (AT_data_files): Fix the computation of PATH.
authorAkim Demaille <akim@epita.fr>
Tue, 16 Jan 2001 13:48:55 +0000 (13:48 +0000)
committerAkim Demaille <akim@epita.fr>
Tue, 16 Jan 2001 13:48:55 +0000 (13:48 +0000)
ChangeLog
doc/autoconf.texi
lib/autotest/general.m4
tests/atgeneral.m4

index 16d632ff1fdd44807028412a3576b53de886c3f8..bddfc8dcbf372d98d21bfab6a3ce5b7e1e145a23 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2001-01-16  Akim Demaille  <akim@epita.fr>
+
+       * tests/atgeneral.m4 (AT_data_files): Fix the computation of PATH.
+
 2001-01-16  Akim Demaille  <akim@epita.fr>
 
        * acgeneral.m4 (_AC_INIT_LOG_COMPLETE): Eve out from AC_OUTPUT.
index 70f93482932d09f3866e2ee74d664c737467611b..aca01d27b0a1d46766eeb3371528752083c12de7 100644 (file)
@@ -5193,6 +5193,14 @@ Ambiguous output redirect.
 In each case the expected result is of course @file{fullness} containing
 @samp{matter} and @file{void} being empty.
 
+Don't try to redirect the standard error of a command substitution: it
+must be done @emph{inside} the command substitution: when running
+@samp{echo `cd /zorglub` 2>/dev/null} expect the error message to
+escape, while @samp{echo `cd /zorglub 2>/dev/null`} works properly.
+
+It is worth noting that Zsh (but not Ash nor Bash) makes it possible
+in assignments though: @samp{foo=`cd /zorglub` 2>/dev/null}.
+
 @node Shell Substitutions, Assignments, File Descriptors, Portable Shell
 @subsection Shell Substitutions
 
index ff431dad2c00ca742422b566432ecccaf3cc48f5..9e844308ca581e8680382c3a0534cbcaa84dae03 100644 (file)
@@ -106,8 +106,10 @@ at_top_srcdir=`cd "$top_srcdir" && pwd`
 at_path=`pwd`
 at_IFS_save=$IFS
 IFS=:
-for at_dir in $AUTOTEST_PATH:$PATH; do
-  at_path=$at_path:`cd "$at_dir" && pwd`
+for at_dir in $AUTOTEST_PATH $PATH; do
+  # There might be directories that don't exist.
+  at_dir=`cd "$at_dir" 2>/dev/null && pwd`
+  test -n "$at_dir" && at_path=$at_path:$at_dir
 done
 IFS=$at_IFS_save
 PATH=$at_path
index ff431dad2c00ca742422b566432ecccaf3cc48f5..9e844308ca581e8680382c3a0534cbcaa84dae03 100644 (file)
@@ -106,8 +106,10 @@ at_top_srcdir=`cd "$top_srcdir" && pwd`
 at_path=`pwd`
 at_IFS_save=$IFS
 IFS=:
-for at_dir in $AUTOTEST_PATH:$PATH; do
-  at_path=$at_path:`cd "$at_dir" && pwd`
+for at_dir in $AUTOTEST_PATH $PATH; do
+  # There might be directories that don't exist.
+  at_dir=`cd "$at_dir" 2>/dev/null && pwd`
+  test -n "$at_dir" && at_path=$at_path:$at_dir
 done
 IFS=$at_IFS_save
 PATH=$at_path