append in subshell so we don't see this diagnostic:
authorJim Meyering <jim@meyering.net>
Wed, 10 May 2000 22:33:06 +0000 (22:33 +0000)
committerJim Meyering <jim@meyering.net>
Wed, 10 May 2000 22:33:06 +0000 (22:33 +0000)
  ./remove: t-shred.11626/file: Permission denied

tests/shred/remove

index 4b3801a..e8405d3 100755 (executable)
@@ -23,7 +23,7 @@ if test $framework_failure = 1; then
   exit 1
 fi
 
-echo foo >> $tmp/file >/dev/null 2>&1 && {
+(echo foo >> $tmp/file) >/dev/null 2>&1 && {
   echo '********************************************'
   echo 'NOTICE: This test case cannot be run as root.'
   echo '********************************************'