Re: rm(1) bug, possibly serious
- From: Oliver Fromme <olli@xxxxxxxxxxxxxxxxx>
- Date: Wed, 26 Sep 2007 20:20:19 +0200 (CEST)
Dan Nelson wrote:
Oliver Fromme said:
The expansion of "*" does not include "." or "..".
Under /bin/sh, ".*" does match "." and "..", so be careful :)
For that reason I got used to type ".??*" instead of ".*"
since I started with UNIX almost 20 years ago. ;-)
Apart from that, zsh is my shell of choice. It never
matches "." or ".." with any globbing patterns. I think
no shell should. I would submit an appropriate patch
for FreeBSD's sh if it would be committed, but I doubt
it would. Even this discussion here about an obvious
bug in rm has bikeshed tendencies. :-(
Best regards
Oliver
--
Oliver Fromme, secnetix GmbH & Co. KG, Marktplatz 29, 85567 Grafing b. M.
Handelsregister: Registergericht Muenchen, HRA 74606, Geschäftsfuehrung:
secnetix Verwaltungsgesellsch. mbH, Handelsregister: Registergericht Mün-
chen, HRB 125758, Geschäftsführer: Maik Bachmann, Olaf Erb, Ralf Gebhart
FreeBSD-Dienstleistungen, -Produkte und mehr: http://www.secnetix.de/bsd
C++: "an octopus made by nailing extra legs onto a dog"
-- Steve Taylor, 1998
_______________________________________________
freebsd-stable@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-stable
To unsubscribe, send any mail to "freebsd-stable-unsubscribe@xxxxxxxxxxx"
- References:
- Re: rm(1) bug, possibly serious
- From: Dan Nelson
- Re: rm(1) bug, possibly serious
- Prev by Date: Re: rm(1) bug, possibly serious
- Next by Date: [OT] Re: rm(1) bug, possibly serious
- Previous by thread: [OT] Re: rm(1) bug, possibly serious
- Next by thread: Re: rm(1) bug, possibly serious
- Index(es):
Relevant Pages
|