Ich habe zwei Probe gemacht mit einem anderen Computer (B).
Ergebnis -> kein Problem, und dies mit Leap 15.2 sowie mit Tumbleweed (eine Distribution ist auf Deutsch, die andere auf Französisch) .
Ich lasse nun den zweiten Computer (B).
==================================================================
Computer (A), mit dem merkwürdigen Ergebnis:
Die drei Outputs mit Debug:
1) ls -l /usr/bin/ | sort --debug -nrk 5 | head -n 60
thierry@localhost:~> ls -l /usr/bin/ | sort --debug -nrk 5 | head -n 60
sort: utilisation des règles de tri « fr_FR.UTF-8 » # es werden die Sortierregeln für "fr_FR.UTF-8"
sort: la clef 1 est numérique et s'étend sur plusieurs champs # Schlüssel 1 ist numerisch und überspannt mehrere Felder
-rwxr-xr-x 1 root root 15182904 12 mai 2020 flashplayer
___________
_____________________________________________________________
-rwxr-xr-x 1 root root 9441608 25 juin 2020 gimp-2.10
__________
___________________________________________________________
-rwxr-xr-x 1 root root 6323384 16 mai 2020 librecad
__________
__________________________________________________________
-rwxr-xr-x 1 root root 3625200 15 juin 2020 kleopatra
__________
___________________________________________________________
-rwxr-xr-x 1 root root 3589528 25 juin 2020 gimp-console-2.10
__________
___________________________________________________________________
-rwxr-xr-x 1 root root 3188584 16 mai 2020 konversation
__________
______________________________________________________________
-rwxr-xr-x 1 root root 3159680 28 oct. 14:01 zypper
__________
________________________________________________________
-rwxr-xr-x 1 root root 2992656 23 nov. 23:59 vim-nox11
__________
___________________________________________________________
-rwxr-xr-x 1 root root 2496112 10 oct. 02:57 Xvnc
__________
______________________________________________________
-rwxr-xr-x 1 root root 22878400 2 déc. 15:13 mariabackup
________
_____________________________________________________________
-rwxr-xr-x 1 root root 2143568 16 mai 2020 busybox-static
__________
________________________________________________________________
-rwxr-xr-x 2 root root 2099800 21 juin 2020 perl5.26.1
__________
____________________________________________________________
-rwxr-xr-x 2 root root 2099800 21 juin 2020 perl
__________
______________________________________________________
-rwxr-xr-x 1 root root 1878040 16 mai 2020 omshell
__________
_________________________________________________________
-rwxr-xr-x 1 root root 1877008 15 juin 2020 akonadi_kolab_resource
__________
________________________________________________________________________
-rwxr-xr-x 1 root root 1474936 15 juin 2020 akonadi_ews_resource
__________
______________________________________________________________________
-rwxr-xr-x 1 root root 1466048 16 mai 2020 w3m
__________
_____________________________________________________
-rwxr-xr-x 1 root root 1465816 16 mai 2020 strace
__________
________________________________________________________
-rwxr-xr-x 1 root root 1309288 13 nov. 00:48 grub2-fstest
__________
______________________________________________________________
-rwxr-xr-x 1 root root 1304552 13 nov. 00:48 grub2-editenv
__________
_______________________________________________________________
Alles anzeigen
2. sort --debug -nr tri_sort.txt | head -n 60
Quelle: tri_sort.txt
thierry@localhost:~> sort --debug -nr tri_sort.txt | head -n 60
sort: utilisation des règles de tri « fr_FR.UTF-8 » # es werden die Sortierregeln für "fr_FR.UTF-8"
100 0
_____
_____
10 00
__
______
10 00
_____
_____
11 0
____
____
1 1 0
_____
_____
1 0 1
___
______
1 0 1
_
______
1 0 1
_
________
1 01
_
_____
10 0
__
_______
10 0
__
______
10 0
__
_____
10 0
____
____
1 0 0
_____
_____
1 0 0
_____
_____
1 0 0
_____
_____
1 0 0
_____
_____
1 0 0
_____
_____
1 0 0
_____
_____
1 0 0
_____
_____
Alles anzeigen
3. LANG=C sort --debug -nr tri_sort.txt | head -n 60
Quelle tri_sort.txt
thierry@localhost:~> LANG=C sort --debug -nr tri_sort.txt | head -n 60
sort: using simple byte comparison
100 0
___
_____
100
___
___
11 0
__
____
11
__
__
10 00
__
_____
10 0
__
____
10 00
__
______
10 0
__
_____
10 0
__
______
10 0
__
_______
10
__
_____
1 1 0
_
_____
1 1
_
___
1 00
_
____
1 00
_
____
1 00
_
____
1 00
_
____
1 00
_
____
1 00
_
____
1 00
_
____
Alles anzeigen
Übrigens: Ich habe die Datei tri_sort.txt mit cat erstellt und dann sie mit vim bearbeitet, also Zeilen hinzugefügt.
Sie ist in UTF-8 kodiert. (Wenn ich sie mit Kate öffne, ist es UTF-8 geschrieben…)