Bug 830706 - rm: invalid option -- 'd'
rm: invalid option -- 'd'
Product: Red Hat Enterprise Linux 7
Classification: Red Hat
Component: coreutils (Show other bugs)
Unspecified Unspecified
high Severity high
: rc
: ---
Assigned To: Ondrej Vasik
: Regression
Depends On:
  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:
Last Closed: 2012-06-11 08:00:06 EDT
Type: Bug
Regression: ---
Mount Type: ---
Documentation: ---
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):

How reproducible:

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 : 

-d is not supported

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