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:  [EMAIL PROTECTED]
nic-hdl: LYNX-RIPE
_______________________________________________
cvs-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/cvs-all
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

Reply via email to