projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c19dbea
)
Redirect errors (e.g. missing file) to /dev/null.
author
Jim Meyering
<jim@meyering.net>
Fri, 4 Oct 2002 11:19:22 +0000
(11:19 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 4 Oct 2002 11:19:22 +0000
(11:19 +0000)
tests/du/slink
patch
|
blob
|
history
diff --git
a/tests/du/slink
b/tests/du/slink
index 008360924c8546fce21eb69bd79ec236d4cb3bc5..462e8e9112f1c5343d09a5db5fbaa9ec085bc8c5 100755
(executable)
--- a/
tests/du/slink
+++ b/
tests/du/slink
@@
-27,7
+27,9
@@
for len in $symlink_name_lengths; do
# Ignore failures.
ln -fs $name $len > /dev/null 2>&1
done
-du -a $symlink_name_lengths > out || fail=1
+
+# Redirect errors (e.g. missing file) to /dev/null.
+du -a $symlink_name_lengths > out 2> /dev/null || fail=1
# Require that at least one of these symlinks has a non-zero size.
grep '^[1-9]' out > /dev/null || fail=1