]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't let verbose-mode output from a subshell obscure actual differences.
authorJim Meyering <jim@meyering.net>
Tue, 29 Jun 2004 14:38:32 +0000 (14:38 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 29 Jun 2004 14:38:32 +0000 (14:38 +0000)
Turn off command-echoing just before
invoking subshell, then turn it back on if VERBOSE=yes afterward.

tests/rm/inaccessible

index a6567c0cd5e16d7bf969724d98d0b4482526680a..843e44e3a8980eec24f7fa01495bd1591d6fda59 100755 (executable)
@@ -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