From owner-cvs-all@FreeBSD.ORG Tue Mar 1 23:09:11 2005 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6188B16A4CE; Tue, 1 Mar 2005 23:09:11 +0000 (GMT) Received: from shrike.submonkey.net (cpc4-cdif3-6-1-cust116.cdif.cable.ntl.com [82.23.41.116]) by mx1.FreeBSD.org (Postfix) with ESMTP id A53AF43D31; Tue, 1 Mar 2005 23:09:10 +0000 (GMT) (envelope-from setantae@submonkey.net) Received: from setantae by shrike.submonkey.net with local (Exim 4.44 (FreeBSD)) id 1D6GUC-000EBC-TK; Tue, 01 Mar 2005 23:09:04 +0000 Date: Tue, 1 Mar 2005 23:09:04 +0000 From: Ceri Davies To: Brooks Davis Message-ID: <20050301230904.GQ3322@submonkey.net> Mail-Followup-To: Ceri Davies , Brooks Davis , Pawel Jakub Dawidek , Brooks Davis , src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org References: <200503012208.j21M8Fi4002801@repoman.freebsd.org> <20050301224647.GY9291@darkness.comp.waw.pl> <20050301225947.GA30024@odin.ac.hmc.edu> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="hFEw+uh9kF5V6COn" Content-Disposition: inline In-Reply-To: <20050301225947.GA30024@odin.ac.hmc.edu> X-PGP: finger ceri@FreeBSD.org User-Agent: Mutt/1.5.8i Sender: Ceri Davies cc: cvs-src@FreeBSD.org cc: Brooks Davis cc: Pawel Jakub Dawidek cc: cvs-all@FreeBSD.org cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d var X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 01 Mar 2005 23:09:11 -0000 --hFEw+uh9kF5V6COn Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On Tue, Mar 01, 2005 at 02:59:47PM -0800, Brooks Davis wrote: > On Tue, Mar 01, 2005 at 11:46:47PM +0100, Pawel Jakub Dawidek wrote: > > On Tue, Mar 01, 2005 at 10:08:15PM +0000, Brooks Davis wrote: > > +> brooks 2005-03-01 22:08:15 UTC > > +>=20 > > +> FreeBSD src repository > > +>=20 > > +> Modified files: > > +> etc/rc.d var=20 > > +> Log: > > +> - Remove the dependency of /usr/bin/touch by using "cp /dev/null <= target>" > > +> to create /var/log/lastlog. > >=20 > > Isn't 'echo -n > ' a better choice? >=20 > Perhaps. I copied the example in etc/rc.d/cleanvar (except without the > lack of newlines). Sam suggested the even simpler ">target" which would > also work. I'm assuming you have a /bin since the line after the cp is > chmod so I'm not really worried. echo -n does have the advantage of > being slightly clearer. I'm not sure if this is worth changing or not. The only difference I can see between the two/three is that both "cp /dev/null $foo" and "echo -n > $foo" will truncate a pre-existing file, but in this case even that distinction isn't important. Ceri --=20 Only two things are infinite, the universe and human stupidity, and I'm not sure about the former. -- Einstein (attrib.) --hFEw+uh9kF5V6COn Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (FreeBSD) iD8DBQFCJPYQocfcwTS3JF8RAkoiAKC5oxNzgXmsOMnnADXcnWZyMeIqsQCgrdqa ZCjZq79Z45NzAwKhzjUWeBE= =XPUh -----END PGP SIGNATURE----- --hFEw+uh9kF5V6COn--