From owner-freebsd-stable@FreeBSD.ORG Wed Sep 26 18:21:50 2007 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3D22016A417 for ; Wed, 26 Sep 2007 18:21:50 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (lurza.secnetix.de [83.120.8.8]) by mx1.freebsd.org (Postfix) with ESMTP id C41C513C457 for ; Wed, 26 Sep 2007 18:21:49 +0000 (UTC) (envelope-from olli@lurza.secnetix.de) Received: from lurza.secnetix.de (localhost [127.0.0.1]) by lurza.secnetix.de (8.14.1/8.14.1) with ESMTP id l8QIKJpW068440; Wed, 26 Sep 2007 20:20:27 +0200 (CEST) (envelope-from oliver.fromme@secnetix.de) Received: (from olli@localhost) by lurza.secnetix.de (8.14.1/8.14.1/Submit) id l8QIKJfI068439; Wed, 26 Sep 2007 20:20:19 +0200 (CEST) (envelope-from olli) From: Oliver Fromme Message-Id: <200709261820.l8QIKJfI068439@lurza.secnetix.de> To: dnelson@allantgroup.com (Dan Nelson) Date: Wed, 26 Sep 2007 20:20:19 +0200 (CEST) In-Reply-To: <20070926171503.GC3062@dan.emsphone.com> X-Mailer: ELM [version 2.5 PL8] MIME-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-2.1.2 (lurza.secnetix.de [127.0.0.1]); Wed, 26 Sep 2007 20:20:27 +0200 (CEST) Cc: freebsd-stable@freebsd.org Subject: Re: rm(1) bug, possibly serious X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 26 Sep 2007 18:21:50 -0000 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