diff options
author | Jim Meyering <jim@meyering.net> | 2003-09-19 08:29:09 +0000 |
---|---|---|
committer | Jim Meyering <jim@meyering.net> | 2003-09-19 08:29:09 +0000 |
commit | 91bc10f713ff80b7a26b63a9522cb484ea24a405 (patch) | |
tree | becf2daa4ff4ff008a7166ebbd8bf4bcc6c77971 | |
parent | 567e58cd2dd50d9c7b09226b486f437250bf84b7 (diff) | |
download | coreutils-91bc10f713ff80b7a26b63a9522cb484ea24a405.tar.xz |
*** empty log message ***
-rw-r--r-- | ChangeLog | 3 | ||||
-rwxr-xr-x | tests/du/deref-args | 7 |
2 files changed, 9 insertions, 1 deletions
@@ -8,6 +8,9 @@ Reported by Jeff Sheinberg as Debian bug #211591; http://bugs.debian.org/205251 + * tests/du/deref-args: New file/test for the above. + * tests/du/Makefile.am (TESTS): Add deref-args. + * src/du.c (process_file): Remove useless disjunct. * src/sys2.h (case_GETOPT_VERSION_CHAR): Rename parameter, Authors, diff --git a/tests/du/deref-args b/tests/du/deref-args index c3cbaed9d..4b6588ef2 100755 --- a/tests/du/deref-args +++ b/tests/du/deref-args @@ -15,7 +15,7 @@ trap '(exit $?); exit $?' 1 2 13 15 framework_failure=0 mkdir -p $tmp || framework_failure=1 cd $tmp || framework_failure=1 -mkdir -p dir/a/b +mkdir -p dir/a ln -s dir slink if test $framework_failure = 1; then @@ -26,8 +26,13 @@ fi fail=0 du -D slink | sed 's/^[0-9][0-9]* //' > out +# Ensure that the trailing slash is preserved and handled properly. +du -D slink/ | sed 's/^[0-9][0-9]* //' >> out cat <<\EOF > exp +slink/a slink +slink/a +slink/ EOF cmp out exp || fail=1 |