emacs-bug-tracker
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[debbugs-tracker] bug#22998: closed (File removal bug)


From: GNU bug Tracking System
Subject: [debbugs-tracker] bug#22998: closed (File removal bug)
Date: Sun, 13 Mar 2016 03:49:02 +0000

Your message dated Sat, 12 Mar 2016 20:47:58 -0700
with message-id <address@hidden>
and subject line Re: bug#22998: File removal bug
has caused the debbugs.gnu.org bug report #22998,
regarding File removal bug
to be marked as done.

(If you believe you have received this mail in error, please contact
address@hidden)


-- 
22998: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=22998
GNU Bug Tracking System
Contact address@hidden with problems
--- Begin Message --- Subject: File removal bug Date: Sat, 12 Mar 2016 12:33:22 -0500 User-agent: Mutt/1.5.21 (2010-09-15)
Hi.

Let's say I manage to create a file named "-filename.extension". It's not being 
removed using "rm -filename.extension", however, it is being removed using 
"/filepath/-filename.extension".
There is a potential fix for this. It is existing in Ubuntu, Fedora, NetBSD, 
FreeBSD and OmniOS, atleast.



--- End Message ---
--- Begin Message --- Subject: Re: bug#22998: File removal bug Date: Sat, 12 Mar 2016 20:47:58 -0700 User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0
tag 22998 notabug
thanks

On 03/12/2016 10:33 AM, Avineshwar Singh wrote:
> Hi.
> 
> Let's say I manage to create a file named "-filename.extension". It's not 
> being removed using "rm -filename.extension",

Indeed, and that's a FAQ:

https://www.gnu.org/software/coreutils/faq/coreutils-faq.html#I-have-a-file-called-_002d_002dhelp_002e-How-do-I-remove-it_003f

> however, it is being removed using "/filepath/-filename.extension".

Indeed, and that is one of the work-arounds for this non-bug.  The other
workaround is to use:

rm -- -filename.extension.

> There is a potential fix for this. It is existing in Ubuntu, Fedora, NetBSD, 
> FreeBSD and OmniOS, atleast.

This is not a bug, but the behavior mandated by POSIX.  Therefore I'm
closing this report.  However, feel free to ask further related
questions in response to this thread.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


--- End Message ---

reply via email to

[Prev in Thread] Current Thread [Next in Thread]