diff options
author | Jim Meyering <jim@meyering.net> | 2003-01-30 19:40:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-01-30 19:40:09 +0000 |
commit | 9f90080b9525febcd717505b983c7842673b3357 (patch) | |
tree | 692c9f126b446509ac71dec941028f97004898ca /tests/du | |
parent | 1c976d196657563e4c9fce0de73ee226c56806ef (diff) | |
download | coreutils-9f90080b9525febcd717505b983c7842673b3357.tar.xz |
Ensure that with -L we get the same results even without the trailing slash.
Diffstat (limited to 'tests/du')
-rwxr-xr-x | tests/du/trailing-slash | 10 |
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 |