GNU bug report logs -
#9742
touch option for existence?
Previous Next
Reported by: Morty <morty+coreutils <at> frakir.org>
Date: Thu, 13 Oct 2011 01:52:01 UTC
Severity: normal
Tags: notabug
Done: Jim Meyering <jim <at> meyering.net>
Bug is archived. No further changes may be made.
Full log
Message #24 received at 9742 <at> debbugs.gnu.org (full text, mbox):
Classic "touch" has always bothered me:
touch -a FOO updates FOO's last-access time.
touch -m FOO updates FOO's last-modification time.
touch -a -m FOO updates both times.
Logically, then, "touch FOO", with neither -a nor -m,
should update neither time. But it doesn't. It
updates both times.
I know why this is so -- among other things, it's
historical practice and we can't change the above behavior.
Still, there ought to be a way for "touch" to update
neither time, via a GNU extension. This
would make the behavior of GNU touch more orthogonal.
This is why I have long been thinking of adding a new option that
would mean "neither -a nor -m". Admittedly it's low priority.
This bug report was last modified 13 years and 228 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.