From 9f90080b9525febcd717505b983c7842673b3357 Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Thu, 30 Jan 2003 19:40:09 +0000 Subject: Ensure that with -L we get the same results even without the trailing slash. --- tests/du/trailing-slash | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/tests/du/trailing-slash b/tests/du/trailing-slash index ba0565018..8042c5898 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 -- cgit v1.2.3-70-g09d2