From owner-freebsd-stable@FreeBSD.ORG Wed Mar 10 16:31:22 2004 Return-Path: Delivered-To: freebsd-stable@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 81BD416A4CF for ; Wed, 10 Mar 2004 16:31:22 -0800 (PST) Received: from alcanet.com.au (mail2.alcanet.com.au [203.62.196.17]) by mx1.FreeBSD.org (Postfix) with ESMTP id 9929F43D1D for ; Wed, 10 Mar 2004 16:31:21 -0800 (PST) (envelope-from peter.jeremy@alcatel.com.au) Received: from sydsmtp02.alcatel.com.au (IDENT:root@localhost.localdomain [127.0.0.1])i2B0VHsr025536; Thu, 11 Mar 2004 11:31:17 +1100 Received: from gsmx07.alcatel.com.au ([139.188.20.247]) by sydsmtp02.alcatel.com.au (Lotus Domino Release 5.0.12) with ESMTP id 2004031111311675:270854 ; Thu, 11 Mar 2004 11:31:16 +1100 Received: from gsmx07.alcatel.com.au (localhost [127.0.0.1]) i2B0VGHQ070537; Thu, 11 Mar 2004 11:31:16 +1100 (EST) (envelope-from peter.jeremy@alcatel.com.au) Received: (from jeremyp@localhost) by gsmx07.alcatel.com.au (8.12.9p2/8.12.9/Submit) id i2B0VG0F070536; Thu, 11 Mar 2004 11:31:16 +1100 (EST) (envelope-from peter.jeremy@alcatel.com.au) Date: Thu, 11 Mar 2004 11:31:16 +1100 From: Peter Jeremy To: Gregory Bond Message-ID: <20040311003115.GL10121@gsmx07.alcatel.com.au> Mail-Followup-To: Gregory Bond , freebsd-stable@freebsd.org References: <200403110014.LAA17110@lightning.itga.com.au> Mime-Version: 1.0 In-Reply-To: <200403110014.LAA17110@lightning.itga.com.au> User-Agent: Mutt/1.4.2i X-MIMETrack: Itemize by SMTP Server on SYDSMTP02/AlcatelAustralia(Release 5.0.12 |February 13, 2003) at 11/03/2004 11:31:16 AM,|February 13, 2003) at 11/03/2004 11:31:17 AM, Serialize complete at 11/03/2004 11:31:17 AM Content-Type: text/plain; charset=us-ascii Content-Disposition: inline cc: freebsd-stable@freebsd.org Subject: Re: unexpected softupdate inconsistency X-BeenThere: freebsd-stable@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Production branch of FreeBSD source code List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 11 Mar 2004 00:31:22 -0000 On 2004-Mar-11 11:14:01 +1100, Gregory Bond wrote: >The key phrase here is "What does vim do here _that rm doesn't_?" > >If vim is also just using unlink() then rm can (theoretically) do the job just >as well. It seems like really odd advice to say "use vim because rm can't do >the job." If this were in any way true, then I'd call that a serious bug in >rm. If the filename to delete includes non-printing or magic-to-the-shell characters (and especially ones with the top bit set), it can be difficult to specify the filename as a command-line argument to rm(1). In these cases, directory-editing modes in editors (or a scripting language like perl) can be very helpful. This isn't a bug in rm(1) and is not necessarily a bug in the shell. It is fairly common when [l]users use GUI tools to create files or use sockaddr_in addresses on AF_UNIX sockets - which I've seen done. -- Peter Jeremy