๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix.shell
Article #403

Re: Time-stamping files

#403
From: Janis Papanagnou
Date: Wed, 18 Nov 2026 07:49
30 lines
2421 bytes
On 2026-11-18 00:56, Nuno Silva wrote:
> On 2026-11-17, Keith Thompson wrote:
>> [...]
>>
>> Reading the GNU coreutils ls documentation, I don't see any mention
>> of how `ls -tr a b` orders its output when a and b have the same
>> timestamp.  I speculate that if the timestamps are the same, it
>> falls back to locale-specific alphabetical sorting -- and since
>> the `-r` (`--reverse`) option was given, it sorts b before a.
>> Someone could examine the source code.
> 
> If it doesn't fall back to that, it should, at least if I'm reading
> right. IEEE 1003.1-2008 says it should sort by "filename in the
> collating sequence":
> 
> ยซโˆ’t  Sort with the primary key being time modified (most recently
>       modified first) and the secondary key being filename in the
>       collating sequence. [...]ยป
> 
> 2024 at opengroup.org has the same:
> <https://pubs.opengroup.org/onlinepubs/9799919799/utilities/ls.html>

Thanks for digging that up! :-)

(Makes all further speculations unnecessary.)

Janis

> [...]
Technical Details
Message-ID: <11djlb4$s03n$3@dont-email.me>
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
References: <11d957u$1fnqs$1@dont-email.me> <11dg5gc$3vgth$3@kst.eternal-september.org> <11dgtp9$34tb9$3@dont-email.me> <11dihk2$q4aj$1@kst.eternal-september.org> <11dipjq$sq2d$2@dont-email.me>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news-ams.pugleaf.net!srl.newsdeef.eu!news.hispagatos.org!eternal-september.org!feeder.eternal-september.org!nntp.eternal-september.org!.POSTED!not-for-mail
From: Janis Papanagnou <janis_papanagnou+ng@hotmail.com>
Newsgroups: comp.unix.shell
Subject: Re: Time-stamping files
Date: Wed, 18 Nov 2026 08:49:56 +0100
Organization: A noiseless patient Spider
Lines: 30
Message-ID: <11djlb4$s03n$3@dont-email.me>
References: <11d957u$1fnqs$1@dont-email.me>
 <11dg5gc$3vgth$3@kst.eternal-september.org> <11dgtp9$34tb9$3@dont-email.me>
 <11dihk2$q4aj$1@kst.eternal-september.org> <11dipjq$sq2d$2@dont-email.me>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 8bit
Injection-Date: Wed, 18 Nov 2026 07:49:58 +0000 (UTC)
Injection-Info: dont-email.me;
	logging-data="917623"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18LJfq2ltdpbSnQO2rlsUz3"; posting-host="5ee6dba4dd6e97f0b7c430097b954d79"
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:9lHpcfIkEr5+45+D3tmSXHt6VCg= sha256:YfK5L6vdnDjOP1fiPKvf3YE/5RJlmulxyJi2SZxr/vA=
	sha1:Now/bxtmh66sF3z25mwbX/j1D8Q= sha256:iTbDhyCkbd7XJrtdqf8Jv+1xTlj0zxKZ+MfPLL6kUs8=
Content-Language: en-US
In-Reply-To: <11dipjq$sq2d$2@dont-email.me>