From 40dfaeed5ca129c202301f6685cf58de6f03729a Mon Sep 17 00:00:00 2001 From: Jim Meyering Date: Sun, 28 Sep 1997 16:33:22 +0000 Subject: *** empty log message *** --- tests/rm/sunos-1 | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'tests') 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 -- cgit v1.2.3-54-g00ecf