Deutsch   English   Français   Italiano  
<m7iqvmFfauiU1@mid.individual.net>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!2.eu.feeder.erje.net!feeder.erje.net!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail
From: vallor <vallor@cultnix.org>
Newsgroups: comp.misc
Subject: Re: Rationale for aligning data on even bytes in a Unix shell file?
Date: 2 May 2025 03:03:18 GMT
Lines: 48
Message-ID: <m7iqvmFfauiU1@mid.individual.net>
References: <vuih43$2agfa$1@dont-email.me>
	<vuobu5$3o38b$2@raubtier-asyl.eternal-september.org>
	<m7fv86FrpdqU3@mid.individual.net> <vv13mg$i2c$1@panix2.panix.com>
Mime-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
X-Trace: individual.net xh3BBshG3fqoElPrQSbvKAjaddx/0uyhB1GEdyDldqDuPSmJ0Z
Cancel-Lock: sha1:0ncVRGyKdTZcuYHkrmukND5/INQ= sha256:BlTqU9iVgc6g7dyhaEhNxX3uCmurhgmDRqwlNcN9udg=
X-Face: +McU)#<-H?9lTb(Th!zR`EpVrp<0)1p5CmPu.kOscy8LRp_\u`:tW;dxPo./(fCl
 CaKku`)]}.V/"6rISCIDP`
User-Agent: Pan/0.162 (Hmm4; 7b109588; Linux-6.14.4)
Bytes: 2299

On Thu, 1 May 2025 20:30:08 -0400 (EDT), kludge@panix.com (Scott Dorsey)
wrote in <vv13mg$i2c$1@panix2.panix.com>:

> vallor  <vallor@cultnix.org> wrote:
>>On Linux, try:
>>
>>LC_COLLATE=C ls -l
>>
>>...and the capitalized filenames will float to the top.
>>
>>(Discovered by logging into my Panix shell and inspecting the behavior
>>and settings there.)
> 
> Does it work on linux as well as on the Panix machines?
> --scott

Yes.

Here's what's up.  When I run locale(1) on Linux Mint, I see:

[...]
LC_COLLATE="en_US.UTF-8"
[...]

So ordering is case-insensitive, apparently:

$ ls -l
total 28
-rwxrwxr-x 1 vallor vallor 16016 Jan 10  2024 ckarray
-rw-rw-r-- 1 vallor vallor   169 Jan 10  2024 ckarray.c
-rw-rw-r-- 1 vallor vallor    24 May  1 19:59 Makefile
-rw-rw-r-- 1 vallor vallor    63 Jan 10  2024 phrase.txt

But setting it to "C", I get:

$ LC_COLLATE=C ls -l
total 28
-rw-rw-r-- 1 vallor vallor    24 May  1 19:59 Makefile
-rwxrwxr-x 1 vallor vallor 16016 Jan 10  2024 ckarray
-rw-rw-r-- 1 vallor vallor   169 Jan 10  2024 ckarray.c
-rw-rw-r-- 1 vallor vallor    63 Jan 10  2024 phrase.txt

....which is the case-sensitive sort order.

-- 
-v System76 Thelio Mega v1.1 x86_64 NVIDIA RTX 3090 Ti
   OS: Linux 6.14.4 Release: Mint 22.1 Mem: 258G
   "Time wounds all heels..."