From owner-freebsd-questions@FreeBSD.ORG Sat Mar 7 12:45:37 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 3EF71106566C for ; Sat, 7 Mar 2009 12:45:37 +0000 (UTC) (envelope-from geekounet@poildetroll.net) Received: from tritus.poildetroll.net (tritus.poildetroll.net [81.93.245.19]) by mx1.freebsd.org (Postfix) with ESMTP id F1D298FC0C for ; Sat, 7 Mar 2009 12:45:36 +0000 (UTC) (envelope-from geekounet@poildetroll.net) Received: from Korriban.poildetroll.net (kashyyyk.poildetroll.net [88.162.190.61]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by tritus.poildetroll.net (Postfix) with ESMTPSA id 7E5538F9; Sat, 7 Mar 2009 13:29:04 +0100 (CET) Message-ID: <49B26889.2010006@poildetroll.net> Date: Sat, 07 Mar 2009 13:28:57 +0100 From: Pierre Guinoiseau Organization: Poil de Troll User-Agent: Thunderbird 2.0.0.19 (X11/20090131) MIME-Version: 1.0 To: Matthew Seaman References: <4ad871310903041609n1542132es793320cb9e0a28e2@mail.gmail.com> <49AF7CEB.90901@infracaninophile.co.uk> In-Reply-To: <49AF7CEB.90901@infracaninophile.co.uk> X-Enigmail-Version: 0.95.7 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="------------enig1E315367F6EAFBB512AD02CF" Cc: Kurt Buff , "freebsd-questions@freebsd.org" , "Vasadi I. Claudiu Florin" Subject: Re: the "yes" comand X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 07 Mar 2009 12:45:37 -0000 This is an OpenPGP/MIME signed message (RFC 2440 and 3156) --------------enig1E315367F6EAFBB512AD02CF Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Matthew Seaman wrote: > Kurt Buff wrote: >> On Wed, Mar 4, 2009 at 16:06, Vasadi I. Claudiu Florin >> wrote: >>> Well , I noticed that, but it's a bit odd now isn't it. I mean, >>> what's the >>> sense of having some darn letter printer out forever ? I found it >>> kind of >>> silly If you ask me. >> >> But, incredibly useful if you actually write shell scripts - many >> programs want a 'y' for input from the stdin, and this will do that >> for you. >=20 > Here's an example. When upgrading FreeBSD, especially over a large del= ta > in version numbers, you will frequently need to delete old files etc. t= hat > are no longer part of the base system. You are provided with a mechani= sm > to do that, viz: >=20 > # cd /usr/src > # make check-old {prints out all old files, directories and > libraries to be deleted} > # make delete-old > {prompts you to delete anything apart from shlibs which it won't > touch} >=20 > However 'make delete-old' will ask you whether you want to delete each > and every individual file, which is tedious. If you decide from your > inspection of the 'make check-old' output that you don't want any of th= e > old files, you can just run: >=20 > # yes | make delete-old >=20 > Job done. >=20 > Cheers, >=20 > Matthew >=20 Or you can also do: # make BATCH_DELETE_OLD_FILES=3DYES delete-old ;) --------------enig1E315367F6EAFBB512AD02CF Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- Version: GnuPG v2.0.11 (FreeBSD) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAkmyaI8ACgkQJikNJSAyef/k7gCgk7H8Dq4Bf+//gHJwsXNtBOL2 Ig8An3GGCDdCKX8G9x6KjA3nAeo6Dfji =m2eK -----END PGP SIGNATURE----- --------------enig1E315367F6EAFBB512AD02CF--