--- - branch: MAIN date: Sat Feb 10 00:19:30 UTC 2024 files: - new: '1.29' old: '1.28' path: src/usr.bin/touch/touch.1 pathrev: src/usr.bin/touch/touch.1@1.29 type: modified - new: '1.40' old: '1.39' path: src/usr.bin/touch/touch.c pathrev: src/usr.bin/touch/touch.c@1.40 type: modified id: 20240210T001930Z.afe2864fc73100a8592ea0bcc84b72d5f43f3748 log: | Add a -D option to touch, which acts like the -d option added to chmod/chown/chgrp (probably others) in the not too far distant past, and causes the operation to be a no-op if no actual change would be made (avoiding updating the file's ctime for no reason). That is, with touch, -D causes no modifying sys call to be made to a file if that file's atime and mtime are already set to the values that would be used. A common case for this is when a "-r ref-file" is also a target file for the operation. Unfortunately -d was already taken in touch, so next best available is -D. module: src subject: 'CVS commit: src/usr.bin/touch' unixtime: '1707524370' user: kre