summaryrefslogtreecommitdiff
path: root/tests/rm/sunos-1
diff options
context:
space:
mode:
authorJim Meyering <jim@meyering.net>1997-09-28 16:33:22 +0000
committerJim Meyering <jim@meyering.net>1997-09-28 16:33:22 +0000
commit40dfaeed5ca129c202301f6685cf58de6f03729a (patch)
treebc88bf5fea79a7808a0dc22e102bf5eb7b0675c6 /tests/rm/sunos-1
parentde2517a1f405e949857046a00ce57fe0bb059df8 (diff)
downloadcoreutils-40dfaeed5ca129c202301f6685cf58de6f03729a.tar.xz
*** empty log message ***
Diffstat (limited to 'tests/rm/sunos-1')
-rwxr-xr-xtests/rm/sunos-16
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/rm/sunos-1 b/tests/rm/sunos-1
index 7a45d1f51..241013e3b 100755
--- a/tests/rm/sunos-1
+++ b/tests/rm/sunos-1
@@ -1,4 +1,8 @@
#!/bin/sh
+# Make sure that rm -rf '' fails.
+# On SunOS 4.1.3, running rm -rf '' in a nonempty directory may
+# actually remove files with names of entries in the current directory
+# but relative to `/' rather than relative to the current directory.
: ${RM=rm}
test=sunos-1
@@ -20,7 +24,7 @@ fi
fail=0
cd $tmp
-$RM '' > /dev/null 2>&1 && fail=1
+$RM -rf '' > /dev/null 2>&1 && fail=1
cd ..
rm -rf $tmp