[
https://issues.apache.org/jira/browse/HADOOP-9289?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13572634#comment-13572634
]
Suresh Srinivas commented on HADOOP-9289:
-----------------------------------------
Daryn, the docs need to be updated to indicate this behavior. For example man
page on rm says:
{noformat}
-f Attempt to remove the files without prompting for
confirmation, regardless of the file's permissions. If the file does not
exist, do not display a diagnostic message or modify the exit
status to reflect an error. The -f option overrides any
previous -i options.
{noformat}
But this change can be done in a later patch.
+1 for the patch.
> FsShell rm -f fails for non-matching globs
> ------------------------------------------
>
> Key: HADOOP-9289
> URL: https://issues.apache.org/jira/browse/HADOOP-9289
> Project: Hadoop Common
> Issue Type: Bug
> Components: fs
> Affects Versions: 0.23.0, 2.0.0-alpha, 3.0.0
> Reporter: Daryn Sharp
> Assignee: Daryn Sharp
> Priority: Blocker
> Attachments: HADOOP-9289.branch-23.patch, HADOOP-9289.patch
>
>
> Rm -f isn't supposed to error for paths that don't exist. It works as
> expected for exact paths, but fails for non-matching globs.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira