On Mon, Aug 14, 2006 at 03:38:43PM +0300, Dmitry Pryanishnikov wrote: > > Hello! > > On Mon, 14 Aug 2006, Dag-Erling Sm?rgrav wrote: > >BTW, if you just need to ensure that a file exists, a safe alternative > >to 'touch ${FILE}' is ':>>${FILE}'. Makefiles in src/sys/modules > >which use touch should probably be updated to use this instead. > > It doesn't change the file's last modification time for me using /bin/sh: > > # uname -r > 6.1-RELEASE > # ls -l aaa > -rw-r--r-- 1 root wheel 512 Jul 18 17:00 aaa > # :>>aaa > # ls -l aaa > -rw-r--r-- 1 root wheel 512 Jul 18 17:00 aaa > # date > Mon Aug 14 15:35:23 EEST 2006 > > So ':>>${FILE}' isn't the same as 'touch ${FILE}' for existing files. > Right, I backed the changes out.
Cheers, -- Ruslan Ermilov [EMAIL PROTECTED] FreeBSD committer
pgp43LNm1KrNe.pgp
Description: PGP signature