diff options
Diffstat (limited to 'tests/rm')
-rwxr-xr-x | tests/rm/sunos-1 | 6 |
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 |