Avoid harmless `ambiguous redirect' diagnostic.

This commit is contained in:
Jim Meyering committed 2006-05-11 07:29:53 +00:00
1 parent 6dd69d3281
commit 029057a361
1 file changed
+2 -2
+2 -2
View File
@@ -40,7 +40,7 @@ for i in $dir_list `expr $n + 1`; do
esac
i_minus_1=$i
done
echo foo > $ip1
echo foo > $i
if test $framework_failure = 1; then
echo "$0: failure in testing framework" 1>&2
@@ -69,7 +69,7 @@ too_many=`sed 's/.*: //' err`
fail=0
# With coreutils-5.93 there was no failure.
# With coreutils-5.94 we get a diagnostic like this:
# With coreutils-5.94 we get the desired diagnostic:
# du: cannot access `1/s/s/s/.../s': Too many levels of symbolic links
du -L 1 > /dev/null 2> out1 && fail=1
sed "s, .1/s/s/s/[/s]*',," out1 > out || fail=1