cvs commit: src ObsoleteFiles.inc
Ruslan Ermilov
ru at freebsd.org
Mon Aug 14 13:02:39 UTC 2006
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
ru at FreeBSD.org
FreeBSD committer
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
Url : http://lists.freebsd.org/pipermail/cvs-src/attachments/20060814/873dbbb4/attachment.pgp
More information about the cvs-src
mailing list