by Anonymous » 14 Feb 2025, 07:13
Umgebung: < /p>
Code: Select all
$ /usr/bin/zsh --version
zsh 5.5.1 (x86_64-redhat-linux-gnu)
$ bash --version
GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
Ich möchte, dass das Gloaden-Ergebnis in Wörterbuchreihenfolge (ASCII-Reihenfolge) sortiert wird und Fallsensitiv ist.
Stromverhalten:
Code: Select all
# Both zsh and bash are the same
$ ls *
9.0 9.1 a.0 A.0 a.1 A.1
< /code>
A.1
sollte nach A.0 .
Nutzlose Versuche:
sortiert werden
Code: Select all
# Both zsh and bash are the same
$ LC_COLLATE=C ls *
9.0 9.1 a.0 A.0 a.1 A.1
# For zsh
$ LC_COLLATE=C ls *(on)
9.0 9.1 a.0 A.0 a.1 A.1
# For zsh
$ LC_COLLATE=C ls *(:o)
9.0 9.1 a.0 A.0 a.1 A.1
Umgebung: < /p>
[code]$ /usr/bin/zsh --version
zsh 5.5.1 (x86_64-redhat-linux-gnu)
$ bash --version
GNU bash, version 4.4.20(1)-release (x86_64-redhat-linux-gnu)
Copyright (C) 2016 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later
[/code]
Ich möchte, dass das Gloaden-Ergebnis in Wörterbuchreihenfolge (ASCII-Reihenfolge) sortiert wird und Fallsensitiv ist.
Stromverhalten:
[code]# Both zsh and bash are the same
$ ls *
9.0 9.1 a.0 A.0 a.1 A.1
< /code>
A.1[/code] sollte nach A.0 .
Nutzlose Versuche:
sortiert werden[code]# Both zsh and bash are the same
$ LC_COLLATE=C ls *
9.0 9.1 a.0 A.0 a.1 A.1
# For zsh
$ LC_COLLATE=C ls *(on)
9.0 9.1 a.0 A.0 a.1 A.1
# For zsh
$ LC_COLLATE=C ls *(:o)
9.0 9.1 a.0 A.0 a.1 A.1
[/code]