hates this: use a subshell.
+2001-01-29 Akim Demaille <akim@epita.fr>
+
+ * tests/atgeneral.m4: Don't redirect builtins' stderr as Ultrix
+ hates this: use a subshell.
+
2001-01-29 Assar Westerlund <assar@sics.se>
* m4sh.m4 (_AS_TEST_PREPARE): Discard output when testing `test
include(m4sh.m4) -*- Autoconf -*-
# M4 macros used in building test suites.
-# Copyright 2000 Free Software Foundation, Inc.
+# Copyright 2000, 2001 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
at_IFS_save=$IFS
IFS=:
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`
+ # There might be directories that don't exist, but don't redirect
+ # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
+ at_dir=`(cd "$at_dir" && pwd) 2>/dev/null`
test -n "$at_dir" && at_path=$at_path:$at_dir
done
IFS=$at_IFS_save
include(m4sh.m4) -*- Autoconf -*-
# M4 macros used in building test suites.
-# Copyright 2000 Free Software Foundation, Inc.
+# Copyright 2000, 2001 Free Software Foundation, Inc.
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
at_IFS_save=$IFS
IFS=:
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`
+ # There might be directories that don't exist, but don't redirect
+ # builtins' (eg., cd) stderr directly: Ultrix's sh hates that.
+ at_dir=`(cd "$at_dir" && pwd) 2>/dev/null`
test -n "$at_dir" && at_path=$at_path:$at_dir
done
IFS=$at_IFS_save