From: Jim Meyering Date: Fri, 4 Oct 2002 11:19:22 +0000 (+0000) Subject: Redirect errors (e.g. missing file) to /dev/null. X-Git-Tag: v4.5.2~18 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4adcccbf487bdb8a27e26913aa8964c9df1e46cf;p=thirdparty%2Fcoreutils.git Redirect errors (e.g. missing file) to /dev/null. --- diff --git a/tests/du/slink b/tests/du/slink index 008360924c..462e8e9112 100755 --- 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