Date: Wed, 26 Sep 2007 20:20:19 +0200 (CEST) From: Oliver Fromme <olli@lurza.secnetix.de> To: dnelson@allantgroup.com (Dan Nelson) Cc: freebsd-stable@freebsd.org Subject: Re: rm(1) bug, possibly serious Message-ID: <200709261820.l8QIKJfI068439@lurza.secnetix.de> In-Reply-To: <20070926171503.GC3062@dan.emsphone.com>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200709261820.l8QIKJfI068439>