From owner-freebsd-hackers@FreeBSD.ORG Tue Oct 5 01:16:41 2004 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id E5E9516A4CE for ; Tue, 5 Oct 2004 01:16:41 +0000 (GMT) Received: from mail.devrandom.org.uk (mail.devrandom.org.uk [84.92.10.242]) by mx1.FreeBSD.org (Postfix) with ESMTP id 2035643D55 for ; Tue, 5 Oct 2004 01:16:41 +0000 (GMT) (envelope-from lists@chrishowells.co.uk) Received: from localhost (frodo [192.168.1.8]) by mail.devrandom.org.uk (Postfix) with ESMTP id 1D214AFE5 for ; Mon, 4 Oct 2004 14:29:11 +0100 (BST) Received: from mail.devrandom.org.uk ([192.168.1.8]) by localhost (frodo [192.168.1.8]) (amavisd-new, port 10024) with ESMTP id 75450-09 for ; Mon, 4 Oct 2004 14:29:08 +0100 (BST) Received: from [192.168.1.176] (unknown [192.168.1.176]) (using TLSv1 with cipher RC4-MD5 (128/128 bits)) (No client certificate requested) by mail.devrandom.org.uk (Postfix) with ESMTP id 0E76BAFCF for ; Mon, 4 Oct 2004 14:29:08 +0100 (BST) From: Chris Howells Organization: K Desktop Environment To: freebsd-hackers@freebsd.org Date: Mon, 4 Oct 2004 13:26:47 +0100 User-Agent: KMail/1.7.50 References: <200410040808.i9488gal006311@grimreaper.grondar.org> In-Reply-To: <200410040808.i9488gal006311@grimreaper.grondar.org> MIME-Version: 1.0 Content-Type: multipart/signed; boundary="nextPart1682926.m4AtDa1FI6"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit Message-Id: <200410041326.51591.lists@chrishowells.co.uk> X-Virus-Scanned: by amavisd-new at devrandom.org.uk Subject: Re: Protection from the dreaded "rm -fr /" X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Oct 2004 01:16:42 -0000 --nextPart1682926.m4AtDa1FI6 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Monday 04 October 2004 09:08, Mark Murray wrote: > Yeah. > > $ alias rm=3D"rm -i" > > and you get the annoying =A0"confirm all deletes" behaviour. Remember that -r over-rides -i, so the warning does not appear: bash-2.05b$ mkdir blah bash-2.05b$ rm -irf blah bash-2.05b$ mkdir blah bash-2.05b$ rm -if blah rm: blah: is a directory bash-2.05b$ rm -ir blah remove blah? y bash-2.05b$ =2D-=20 Cheers, Chris Howells -- chris@chrishowells.co.uk, howells@kde.org Web: http://chrishowells.co.uk, PGP ID: 0x33795A2C KDE/Qt/C++/PHP Developer: http://www.kde.org --nextPart1682926.m4AtDa1FI6 Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.6 (FreeBSD) iD4DBQBBYUGLF8Iu1zN5WiwRAoQLAJiJT8HymFa//OgkvCCdDdBpFeYtAJ4xCj/x a+HNjgVv2rm9B9d2XL0zLA== =chBQ -----END PGP SIGNATURE----- --nextPart1682926.m4AtDa1FI6--