cvs commit: src ObsoleteFiles.inc

Dmitry Pryanishnikov dmitry at atlantis.dp.ua
Mon Aug 14 12:39:09 UTC 2006


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.

Sincerely, Dmitry
-- 
Atlantis ISP, System Administrator
e-mail:  dmitry at atlantis.dp.ua
nic-hdl: LYNX-RIPE


More information about the cvs-src mailing list