]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
Don't fail when run with VERBOSE=yes.
authorJim Meyering <jim@meyering.net>
Tue, 21 Oct 2003 16:07:47 +0000 (16:07 +0000)
committerJim Meyering <jim@meyering.net>
Tue, 21 Oct 2003 16:07:47 +0000 (16:07 +0000)
Do `set +x' before starting the subshell
from which we invoke chgrp.  Otherwise, the output from the
VERBOSE=yes-induced `set -x' would result in spurious differences.

tests/chgrp/basic

index 5c5a574c97ea319b3ed9037064cd29157bceec85..ee2f2b535f608d63872c6f94f073449532c020a3 100755 (executable)
@@ -36,6 +36,9 @@ chgrp $g2 f || fail=1
 chgrp $g2 f2 || fail=1
 chgrp -R $g1 d || fail=1
 
+# Don't let verbose output interfere.
+test "$VERBOSE" = yes && set +x
+
 (
   chgrp -c $g1 f
   chgrp -c $g2 f