rm(1) bug, possibly serious
Oliver Fromme
olli at lurza.secnetix.de
Wed Sep 26 11:21:50 PDT 2007
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
More information about the freebsd-stable
mailing list