summaryrefslogtreecommitdiff
path: root/tests/shred/remove
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>2000-05-10 22:33:06 +0000
committerJim Meyering <jim@meyering.net>2000-05-10 22:33:06 +0000
commit8c8e4286b54417333aac9c170d713bb78268a5b1 (patch)
tree0546653ad6a1806145b00686d69385a2b8e1b3e9 /tests/shred/remove
parentce8cf50e0a69e14085d1f350b5964d2dd0313711 (diff)
downloadcoreutils-8c8e4286b54417333aac9c170d713bb78268a5b1.tar.xz
append in subshell so we don't see this diagnostic:
./remove: t-shred.11626/file: Permission denied
Diffstat (limited to 'tests/shred/remove')
-rwxr-xr-xtests/shred/remove2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/shred/remove b/tests/shred/remove
index 4b3801acd..e8405d39a 100755
--- a/tests/shred/remove
+++ b/tests/shred/remove
@@ -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 '********************************************'