From: Jim Meyering Date: Thu, 30 Jan 2003 19:40:09 +0000 (+0000) Subject: Ensure that with -L we get the same results even without the trailing slash. X-Git-Tag: v4.5.5~52 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f90080b9525febcd717505b983c7842673b3357;p=thirdparty%2Fcoreutils.git Ensure that with -L we get the same results even without the trailing slash. --- diff --git a/tests/du/trailing-slash b/tests/du/trailing-slash index ba05650188..8042c58983 100755 --- a/tests/du/trailing-slash +++ b/tests/du/trailing-slash @@ -27,10 +27,18 @@ fi fail=0 du slink/ | sed 's/^[0-9][0-9]* //' > out +echo === >> out + +# Ensure that with -L we get the same results even without the trailing slash. +du -L slink | sed 's/^[0-9][0-9]* //' >> out cat <<\EOF > exp slink/1/2 slink/1 -slink/ +slink +=== +slink/1/2 +slink/1 +slink EOF cmp out exp || fail=1