On 2026-11-16, Geoff Clare <geo…@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: @Kazi…@mstdn.ca