[SunHELP] Strange "rm" Case
DAUBIGNE Sebastien - BOR ( SDaubigne@bordeaux-bersol.sema.slb.com )
SDaubigne at bordeaux-bersol.sema.slb.com
Thu May 30 04:59:18 CDT 2002
I suspect 'rm' is an alias to 'rm -i'.
Type "whence rm" or "alias | grep rm" to see how the shell will interpret
"rm".
---
Sebastien DAUBIGNE
sdaubigne at bordeaux-bersol.sema.slb.com <mailto:sebastien.daubigne at sema.fr>
- (+33)5.57.26.56.36
SchlumbergerSema - Sema Global Services - DW/Pessac
-----Message d'origine-----
De: Devrim Yilmaz (Garanti Teknoloji)
[SMTP:DevrimY at garanti.com.tr]
Date: jeudi 30 mai 2002 08:48
: sunhelp at sunhelp.org
Objet: [SunHELP] Strange "rm" Case
Hi friends;
I met with a strange "rm" case. When i use rm command without
relative path,
it ask me for each file or directory to delete., although i force
them to
remove. But when i use with relative path including both rm commands
under
/usr/bin/rm and /usr/xpg4/bin/rm, everthing is ok. Do you have any
idea about
that? Have u ever met with that case?
Thx and regards..
dEVRim
----------------------------------------------------------------------------
-
-----------------------
# uname -a
SunOS anakonda 5.6 Generic_105181-23 sun4u sparc SUNW,Ultra-5_10
# find / -name rm
/usr/bin/rm
/usr/xpg4/bin/rm
# which rm
/bin/rm
# pwd
/tmp/devrim
# ls -al
total 64
drwxr-xr-x 2 root other 159 May 23 11:32 .
drwxrwxrwt 8 sys sys 549 May 23 11:32 ..
-rw-r--r-- 1 root other 929 May 23 11:32 profiles.out
-rwxr--r-- 1 root other 1882 May 23 11:32 reporter2.pl
# rm -rf *
rm: remove profiles.out (yes/no)?
# /usr/bin/rm -rf *
# /usr/xpg4/bin/rm /tmp/devrim2/*
_______________________________________________
SunHELP maillist - SunHELP at sunhelp.org
http://www.sunhelp.org/mailman/listinfo/sunhelp
More information about the SunHELP
mailing list