|
From: | Paul Eggert |
Subject: | bug#27942: Bug regarding "touch" command |
Date: | Fri, 4 Aug 2017 09:17:50 -0700 |
User-agent: | Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.2.1 |
L A Walsh wrote:
You run "touch -". Whatever file stdout happens to be associated with, gets touched. It's the same idea as "cat -", except with stdout rather than stdin.The difference between that and updating due to write activity being mostly that ctime is also written?
No, that's not a difference. Try running 'touch foo; strace touch foo; strace touch - >>foo'. I did that, and saw the same system call being used to alter foo's last-modified time, in both strace outputs.
[Prev in Thread] | Current Thread | [Next in Thread] |