Bug 830706

Summary: rm: invalid option -- 'd'
Product: Red Hat Enterprise Linux 7 Reporter: Petr Sklenar <psklenar>
Component: coreutilsAssignee: Ondrej Vasik <ovasik>
Status: CLOSED NOTABUG QA Contact: qe-baseos-daemons
Severity: high Docs Contact:
Priority: high    
Version: 7.0CC: kdudka
Target Milestone: rcKeywords: Regression
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-06-11 12:00:06 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Petr Sklenar 2012-06-11 09:18:23 UTC
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 09:58:19 UTC
(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 12:00:06 UTC
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 12:05:48 UTC
there is related rhel6 bug about that : 
https://bugzilla.redhat.com/show_bug.cgi?id=473472

-d is not supported