On Mon, 16 Jul 2001, Jakub Jelinek wrote:

> On Mon, Jul 16, 2001 at 02:41:24PM -0500, [EMAIL PROTECTED] wrote:
> >  In v7.0, unmodified, sort produced a listing that ignored leading dots
> > and case. ls was still POSIX compliant.
>                        ^^^^^^^^^^^^^^^^
> >  So in 7.1, unmodified, sort AND "ls -a" ignore case and leading dots.
>
> Does the above mean you think ls sorting behaviour in 7.1 is not POSIX
> compliant? Then please cite where does POSIX mandate such behaviour.

 Short answer:
LC_ALL=POSIX = LC_ALL=C

Long answer from www.opengroup.org - straight copy/paste, some of their
punctuation didn't survive:

POSIX Locale
All systems provide a POSIX locale, also known as the C locale.
The behaviour of standard utilities and functions in the POSIX locale is
as if the locale was defined via the localedef utility with input data
from the POSIX locale tables in Locale Definition.
The tables in Locale Definition describe the characteristics and
behaviour of the POSIX locale for data consisting entirely of characters
from the portable character set and the control character set.
For other characters, the behaviour is unspecified.
For C-language programs, the POSIX locale is the default locale when the
setlocale() function is not called. The POSIX locale can be specified by
assigning to the appropriate environment variables the values C or
POSIX.

> If you request English language sorting, then case-insensitivity and lower
> importance of punctuation characters is what you get.

Didn't request English language sorting, just didn't request an
other-language install.

> > Looks just like DOS. Breaks scripts at an amazing rate. At least they
> > left the dot files hidden.
>
> Breaks badly written scripts.

No doubt. However, most of the scripts I've seen puke on it aren't by
me. And I've yet to see any coherent reason not to have RedHat list
files and sort like almost every other Unix-like and UNIX system out
there. There really is intrinsic value in cross-platform consistency.
The fact that it took UNIX 20 years to learn that doesn't mean it should
take Linux that long.

See ya later,
 Doc



_______________________________________________
Seawolf-list mailing list
[EMAIL PROTECTED]
https://listman.redhat.com/mailman/listinfo/seawolf-list

Reply via email to