summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2003-01-30 19:40:09 +0000
committerJim Meyering <jim@meyering.net>2003-01-30 19:40:09 +0000
commit9f90080b9525febcd717505b983c7842673b3357 (patch)
tree692c9f126b446509ac71dec941028f97004898ca
parent1c976d196657563e4c9fce0de73ee226c56806ef (diff)
downloadcoreutils-9f90080b9525febcd717505b983c7842673b3357.tar.xz
Ensure that with -L we get the same results even without the trailing slash.
-rwxr-xr-xtests/du/trailing-slash10
1 files changed, 9 insertions, 1 deletions
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