Article View: comp.unix.shell
Article #391Re: Time-stamping files
From: Kaz Kylheku
Date: Tue, 17 Nov 2026 01:05
Date: Tue, 17 Nov 2026 01:05
25 lines
2076 bytes
2076 bytes
On 2026-11-16, Geoff Clare <geoff@clare.See-My-Signature.invalid> wrote: > Janis Papanagnou wrote: > >> What I lazily did was, say, touch name*.pdf but while the shell's >> file expansion lists sequentially name1.pdf name2.pdf ... name8.pdf >> the 'touch' command seems to _operate_ arguments in *reverse* order. > > Which version of touch? > > POSIX requires that touch processes the files in the order they are > given. That's a terrible requirement. It should be required to touch all files passed as arguments in the same invocation to the same timestamp. Which can happen anyway for small numbers of arguments on a filesystem with sufficiently poor timestamp granularity. POSIX's requirement does not add up to a guarantee that the objects have increasing timestamps in the order given, so what's the point. -- TXR Programming Language: http://nongnu.org/txr Cygnal: Cygwin Native Application Library: http://kylheku.com/cygnal Mastodon: @Kazinator@mstdn.ca
Technical Details
Message-ID:
<20261116170406.422@kylheku.com>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mailReferences:
<11d957u$1fnqs$1@dont-email.me> <iudrsm-bcg.ln1@ID-313840.user.individual.net>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail From: Kaz Kylheku <046-301-5902@kylheku.com> Newsgroups: comp.unix.shell Subject: Re: Time-stamping files Date: Tue, 17 Nov 2026 01:05:41 -0000 (UTC) Organization: A noiseless patient Spider Lines: 25 Message-ID: <20261116170406.422@kylheku.com> References: <11d957u$1fnqs$1@dont-email.me> <iudrsm-bcg.ln1@ID-313840.user.individual.net> Injection-Date: Tue, 17 Nov 2026 01:05:41 +0000 (UTC) Injection-Info: dont-email.me; logging-data="52694"; mail-complaints-to="abuse@eternal-september.org"; posting-account="U2FsdGVkX1+m8dy+vRQpJ2mJZ6I8J+wJXFuh4JoK5Ik="; posting-host="2ea98194fc4e1764e93d015a3b02c220" User-Agent: slrn/pre1.0.4-9 (Linux) Cancel-Lock: sha1:xeh7hIUyqZkg3XfpKewHFnLALl8= sha256:DwmXVhAqrz7dlDDN/H7NfzA8ycyayNI78ghqhK56iKQ= sha1:wDTIfJsCl45BihYhK93yBkLvVpk= sha256:QaIFq0PmG3kc97s32p8iia4MvGWrIQsWQGjFXhcpt4k=