bug: rm command

"Chandan S Pansare \(pcsbom\)" <[email protected]>
Newsgroups gmane.comp.gnu.fileutils.bugs
Message-ID <001501c28acf$f85ef030$bd60a8c0@pc5579>
Hi,

according to man page of 'rm' command -d option can be used to unlink directory (by su).
 " -d, --directory              unlink  directory,  even  if  non-empty (super-user only) " 

I am using "rm (GNU fileutils) 4.0l".
If I specify -d option for a removing a directory, it gives me an error 

# rm -d <dir>
rm: cannot unlink `<dir>': Is a directory

I have to specify -R option to remove a directory.

Is this behavior correct? what's the of -d option?

Thanx n Regards

Chandan S Pansare
Software Engineer
Patni Computer Systems Limited
Unit 141, SDF 5,
SEEPZ, Mumbai
Tel: 91 22 28291454 ext. 5017
Fax: 91 22 28292764

http://www.patni.com
World-Wide Partnerships. World-Class Solutions.
----------------------------------------------------------------------------------------------------------------
This e-mail message may contain proprietary, confidential or legally
privileged information for the sole use of the person or entity to whom this
message was originally addressed. Any review, e-transmission dissemination
or other use of or taking of any action in reliance upon this information by
persons or entities other than the intended recipient is prohibited. If you
have received this e-mail in error kindly delete this e-mail from your
records.
If it appears that this mail has been forwarded to you without proper
authority, please notify us immediately at [email protected] and delete
this mail.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.