Skip to content
Tcl Source Code View Ticket
Login

View Ticket

bad indices returned by lsort -indices

Closed / Invalidff98a6d77cfc7f43cb2dfba6b09285c4e77df638Created 9 years agoUpdated 9 years ago
Descriptionplain2018-02-22 16:01:36
Hi, It seems that the command lsort -indices -dictionary return is BAD for this configuration:

% info tclversion
8.6
% lsort -indices  -dictionary {c a b}
1 2 0

I was expecting : 2 0 1

Other combinations are correct 

% lsort -indices  -dictionary {a b c}
0 1 2
% lsort -indices  -dictionary {a b}
0 1
% lsort -indices  -dictionary {b a c}
1 0 2

% uname -a
Linux <machineName> 2.6.18-194.32.1.el5 #1 SMP Wed Jan 5 17:52:25 EST 2011 x86_64 x86_64 x86_64 GNU/Linux
% more /etc/redhat-release
CentOS release 5.5 (Final)


Thanks to have a look
dgpplain2018-02-22 16:20:23
Why are you expecting '2 0 1' ?  That would imply an order
of 'b c a' which doesn't match any dictionaries I know about.

Result looks right to me.
dgpplain2018-03-15 12:43:54
No reply. closing.
Log in (anonymous is fine) to add a comment.