Skip to content
Tcl Source Code View Ticket
Login

View Ticket

2004-09-23
00:15 • Closed ticket [1032745fff]: lsort -unique -integer loses list members plus 3... artifact: 470bde05ec user: hobbs
2004-09-22
22:56 • Ticket [1032745fff]: 4 changes artifact: 20d7c9cbe3 user: dgp
15:44 • New ticket [1032745fff]. artifact: 4059e664c1 user: nobody

lsort -unique -integer loses list members

Closed / Invalid1032745fffffffffffffffffffffffffffffffffCreated 22 years agoUpdated 22 years ago
Descriptionplain2004-09-22 15:44:38
Following are two scripted results of "lsort -unique
-integer".  The second shows that a member of the list
is lost.  Any ideas why one succeeds and the other
fails?  Any work-arounds, aside from not using "-integer"?


% lsort -unique -integer {0034 0044 0322 231}
0034 0044 0322 231

% lsort -unique -integer {0326 0327 0454 214}
214 0327 0454
dgpplain2004-09-22 22:56:28
Logged In: YES 
user_id=80530


You asked the values to be
treated as integers, and you
asked for duplicates to be
removed.

When viewed as integers,
"0326" and "214" are
duplicates.

leading zero implies octal.
hobbs Closed ticket [1032745fff]. [History diff]2004-09-23 00:15:09
Log in (anonymous is fine) to add a comment.