]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Unset CDPATH. Otherwise, having the
authorJim Meyering <jim@meyering.net>
Wed, 19 Mar 2003 08:15:14 +0000 (08:15 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 19 Mar 2003 08:15:14 +0000 (08:15 +0000)
CDPATH shell variable set could cause this test to fail.

tests/mv/part-symlink

index cf2055fdf66b93eac9a00047f171eb3dc2851b18..4bcef66e8d03e51e322a0ee5974fd663d38ae56b 100755 (executable)
@@ -20,6 +20,10 @@ pwd_tmp=$pwd/$tmp
 # Make sure the programs use C-locale formats/translations.
 . $srcdir/../lang-default
 
+# Unset CDPATH.  Otherwise, output from the `cd dir' command
+# can make this test fail.
+(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
+
 if test -z "$other_partition_tmpdir"; then
   (exit 77); exit
 fi