From: Jim Meyering Date: Tue, 29 Jun 2004 14:38:32 +0000 (+0000) Subject: Don't let verbose-mode output from a subshell obscure actual differences. X-Git-Tag: v5.3.0~1231 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=791845693a6197b4ec0ebcb669ab9a5f35925e1a;p=thirdparty%2Fcoreutils.git Don't let verbose-mode output from a subshell obscure actual differences. Turn off command-echoing just before invoking subshell, then turn it back on if VERBOSE=yes afterward. --- diff --git a/tests/rm/inaccessible b/tests/rm/inaccessible index a6567c0cd5..843e44e3a8 100755 --- a/tests/rm/inaccessible +++ b/tests/rm/inaccessible @@ -27,7 +27,9 @@ fi fail=0 p=$pwd/$tmp +set +x (cd no-access; chmod 0 . && rm -r $p/abs1 rel $p/abs2) 2> out && fail=1 +test "$VERBOSE" = yes && set -x test -d $p/abs1 && fail=1 test -d $p/abs2 && fail=1