Bug 830706 - rm: invalid option -- 'd'
rm: invalid option -- 'd'
Status: CLOSED NOTABUG
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: coreutils (Show other bugs)
7.0
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Ondrej Vasik
qe-baseos-daemons
: Regression
Depends On:
Blocks:
  Show dependency treegraph
 
Reported: 2012-06-11 05:18 EDT by Petr Sklenar
Modified: 2012-06-11 08:05 EDT (History)
1 user (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2012-06-11 08:00:06 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: ---


Attachments (Terms of Use)

  None (edit)
Description Petr Sklenar 2012-06-11 05:18:23 EDT
Description of problem:
rm: invalid option -- 'd'
There is error about missing option on rhel7.
This options works well on rhel6.

Version-Release number of selected component (if applicable):
coreutils-8.15-6.1.el7.x86_64

How reproducible:
deterministic

Steps to Reproduce:
1. mkdir /tmp/neco
2. rm -rdf /tmp/neco
  
Actual results:
rm: invalid option -- 'd'
Try `rm --help' for more information.


Expected results:
directory is deleted

Additional info:
rhel6: rm deletes the directory, used coreutils-8.4-19.el6.i686
Comment 1 Kamil Dudka 2012-06-11 05:58:19 EDT
(In reply to comment #0)
> This options works well on rhel6.

Which file system did you test it with?  Did the option take any effect?

> rhel6: rm deletes the directory, used coreutils-8.4-19.el6.i686

The option was undocumented in coreutils-8.4-19.el6 already.
Comment 2 Kamil Dudka 2012-06-11 08:00:06 EDT
Discussed off-list, this option did not work on RHEL-6, neither on RHEL-5.  If there are any scripts around that rely on this option being silently ignored, we believe that now is the best time to fix them.
Comment 3 Petr Sklenar 2012-06-11 08:05:48 EDT
there is related rhel6 bug about that : 
https://bugzilla.redhat.com/show_bug.cgi?id=473472

-d is not supported

Note You need to log in before you can comment on or make changes to this bug.