]> git.ipfire.org Git - thirdparty/coreutils.git/commitdiff
*** empty log message ***
authorJim Meyering <jim@meyering.net>
Sun, 28 Sep 1997 16:33:22 +0000 (16:33 +0000)
committerJim Meyering <jim@meyering.net>
Sun, 28 Sep 1997 16:33:22 +0000 (16:33 +0000)
tests/rm/sunos-1

index 7a45d1f5139a85d8ba8ff20ca8f3fa0accd72011..241013e3b5f37b5081e9c878a86818333bc1f4bd 100755 (executable)
@@ -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