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

tests/cp/same-file

index 3d6aa95f676ba01981ccb1c433b21a71ec436ef1..639098ebd4940144c3c21f75dc48a287ced91910 100755 (executable)
@@ -9,6 +9,10 @@ fi
 
 . $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
+
 VERSION_CONTROL=numbered; export VERSION_CONTROL
 
 pwd=`pwd`