Ensure that with -L we get the same results even without the trailing slash.
authorJim Meyering <jim@meyering.net>
Thu, 30 Jan 2003 19:40:09 +0000 (19:40 +0000)
committerJim Meyering <jim@meyering.net>
Thu, 30 Jan 2003 19:40:09 +0000 (19:40 +0000)
tests/du/trailing-slash

index ba05650..8042c58 100755 (executable)
@@ -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