Andreas Ley <[EMAIL PROTECTED]> writes:
| When compiling fileutils-4.0 and running "make check", the cp/same-file
| test fails because it compares its output to the expected output.
| Unfortunatly, when CDPATH is set, on some systems "cd" outputs the
| directory, and this output gets captured, too. The obvious fix is:
|
| *** tests/cp/same-file.orig Sat Aug 29 20:04:46 1998
| --- tests/cp/same-file Fri Jul 21 13:13:21 2000
| ***************
| *** 43,49 ****
| esac
| rm -rf dir
| mkdir dir
| ! cd dir
| echo $contents > foo
| case "$args" in *symlink*) ln -s foo symlink ;; esac
| case "$args" in *hardlink*) ln foo hardlink ;; esac
| --- 43,49 ----
| esac
| rm -rf dir
| mkdir dir
| ! cd dir >/dev/null
| echo $contents > foo
| case "$args" in *symlink*) ln -s foo symlink ;; esac
| case "$args" in *hardlink*) ln foo hardlink ;; esac
|
| (or, an "unset CDPATH" before the exec).
Thanks for the suggestion.
That is handled in the latest test release by detecting that
it's set and warning the user. Using `unset' would be better,
were it not for the fact that it is not portable.