mirror of
git://git.sv.gnu.org/coreutils.git
synced 2026-08-05 08:10:15 +02:00
*** empty log message ***
This commit is contained in:
+5
-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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user