From owner-freebsd-stable@FreeBSD.ORG Wed Sep 26 18:02:46 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 17E4316A41A for ; Wed, 26 Sep 2007 18:02:46 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from astro.systems.pipex.net (astro.systems.pipex.net [62.241.163.6]) by mx1.freebsd.org (Postfix) with ESMTP id DF6FA13C47E for ; Wed, 26 Sep 2007 18:02:45 +0000 (UTC) (envelope-from xfb52@dial.pipex.com) Received: from [192.168.23.2] (62-31-10-181.cable.ubr05.edin.blueyonder.co.uk [62.31.10.181]) by astro.systems.pipex.net (Postfix) with ESMTP id 4F342E000310; Wed, 26 Sep 2007 18:38:38 +0100 (BST) Message-ID: <46FA991E.4090303@dial.pipex.com> Date: Wed, 26 Sep 2007 18:38:38 +0100 From: Alex Zbyslaw User-Agent: Mozilla/5.0 (X11; U; FreeBSD i386; en-GB; rv:1.7.13) Gecko/20061205 X-Accept-Language: en MIME-Version: 1.0 To: Dan Nelson References: <54db43990709251838q68bdba95iefefb43029761c34@mail.gmail.com> <200709261447.l8QElua3058752@lurza.secnetix.de> <20070926171503.GC3062@dan.emsphone.com> In-Reply-To: <20070926171503.GC3062@dan.emsphone.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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:02:46 -0000 Dan Nelson wrote: >In the last episode (Sep 26), Oliver Fromme said: > > >>Bob Johnson wrote: >> >> > Maybe. But I expect that the behavior for "rm -rf .." is there so >> > that things don't get REALLY astonishing when you do "rm -rf *". >> >>The expansion of "*" does not include "." or "..". >> >> > >Under /bin/sh, ".*" does match "." and "..", so be careful :) > > > .??* is a standard workaround that works most of the time. Won't match .a .b etc but such antisocial files are the exception, one might hope. --Alex