Date: Tue, 1 Mar 2005 14:59:47 -0800 From: Brooks Davis <brooks@one-eyed-alien.net> To: Pawel Jakub Dawidek <pjd@FreeBSD.org> Cc: src-committers@FreeBSD.org Subject: Re: cvs commit: src/etc/rc.d var Message-ID: <20050301225947.GA30024@odin.ac.hmc.edu> In-Reply-To: <20050301224647.GY9291@darkness.comp.waw.pl> References: <200503012208.j21M8Fi4002801@repoman.freebsd.org> <20050301224647.GY9291@darkness.comp.waw.pl>
next in thread | previous in thread | raw e-mail | index | archive | help
--zYM0uCDKw75PZbzx Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable 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 <ta= rget>" > +> to create /var/log/lastlog. >=20 > Isn't 'echo -n > <target>' a better choice? 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. -- Brooks --=20 Any statement of the form "X is the one, true Y" is FALSE. PGP fingerprint 655D 519C 26A7 82E7 2529 9BF0 5D8E 8BE9 F238 1AD4 --zYM0uCDKw75PZbzx Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQFCJPPiXY6L6fI4GtQRAhJ3AKCIQrsfkW0EMk2iiVCOqHml4ZvxjQCgizPd zLNFtr/I8mje/FH8aOK2TIY= =Hjke -----END PGP SIGNATURE----- --zYM0uCDKw75PZbzx--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20050301225947.GA30024>