Skip Menu |

This queue is for tickets about the File-Remove CPAN distribution.

Report information
The Basics
Id: 78405
Status: resolved
Priority: 0/
Queue: File-Remove

People
Owner: Nobody in particular
Requestors: sharyanto [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Wishlist
Broken in: (no value)
Fixed in: (no value)



Subject: Do not interpret wildcard, except on Windows
Interpreting wildcards is a convenience for Windows user, but an inconvenience/annoyance for Unix users. For example, if there is a file/ dir named '*', File::Remove can remove it (tested on bash/Linux, don't know on other systems), but when the file/dir doesn't exist, it will happily remove all the other files due to glob() matching all. IMO, there should at least be an easy way to disable globbing. Globbing is just a glob() away anyway.
On Mon Jul 16 12:03:54 2012, SHARYANTO wrote: Show quoted text
> Interpreting wildcards is a convenience for Windows user, but an > inconvenience/annoyance for Unix users. For example, if there is a file/ > dir named '*', File::Remove can remove it (tested on bash/Linux, don't > know on other systems), but when the file/dir doesn't exist, it will > happily remove all the other files due to glob() matching all. > > IMO, there should at least be an easy way to disable globbing. Globbing > is just a glob() away anyway.
sorry for the late response and I agree it would be a useful feature.
On Sun Jan 10 13:15:29 2016, SHLOMIF wrote: Show quoted text
> On Mon Jul 16 12:03:54 2012, SHARYANTO wrote:
> > Interpreting wildcards is a convenience for Windows user, but an > > inconvenience/annoyance for Unix users. For example, if there is a file/ > > dir named '*', File::Remove can remove it (tested on bash/Linux, don't > > know on other systems), but when the file/dir doesn't exist, it will > > happily remove all the other files due to glob() matching all. > > > > IMO, there should at least be an easy way to disable globbing. Globbing > > is just a glob() away anyway.
> > sorry for the late response and I agree it would be a useful feature.
Should be fixed in 1.55. Marking as RESOLVED. Thanks!