GNU bug report logs -
#6924
hi there is misstake in rm --help option
Previous Next
Reported by: "Artur Kulikowski" <arkulik <at> gmail.com>
Date: Fri, 27 Aug 2010 16:19:01 UTC
Severity: normal
Tags: notabug
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
Full log
View this message in rfc822 format
On 08/27/2010 08:19 AM, Artur Kulikowski wrote:
> To remove a file whose name starts with a `-', for example `-foo',
>
> the * marki s forgotten shouldn't it be :
>
> rm -- -foo*
Only if you are trying to remove a file whose name starts with "-foo"
but contains even more bytes. But the example was clear that we are
concerned about a file that is named exactly "-foo", and only that it
starts with "-", not "-foo". I think the wording is fine as-is.
> Without * it didn't work for me
What do you mean by didn't work? Can you post the exact sequence of
commands that you did to create and try to remove a problematic file
name, and the error message (if any) that made you assume that it didn't
work? The whole point of that text in the example is that you use
either -- or inserting a leading ./ to remove a problematic filename
that is relative to the current directory; but you still have to type
either the full filename or use shell globbing just as with any other
file name.
--
Eric Blake eblake <at> redhat.com +1-801-349-2682
Libvirt virtualization library http://libvirt.org
This bug report was last modified 14 years and 23 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.