Artifact
5532f611db649457f6b2733c63506bc21f5bd9a0:
Ticket change
[5532f611db]
- New ticket
[465674ffffffffff|465674ffff] <i>[lsort -index end-1] problem</i>.
by
dkf on
2001-09-27 14:37:51.
D 2001-09-27T14:37:51
J assignee dkf
J cmimetype text/plain
J comment The\sindex\s'end-1'\s(or\swith\sany\sother\soffset\sfrom\sthe\nend)\sis\sprocessed\sby\s[lsort]\sexactly\sas\sif\sit\swas\sthe\nindex\s'end'\swithout\san\soffset.\s\sThus\n\n\s\s%\sset\sl\s{{d\sb\sc}\s{a\sc\sb}}\n\s\s{d\sb\sc}\s{a\sc\sb}\n\s\s%\slsort\s$l\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s\s;#\sOK\n\s\s{a\sc\sb}\s{d\sb\sc}\n\s\s%\slsort\s-index\send\s$l\s\s\s\s\s\s;#\sOK\n\s\s{a\sc\sb}\s{d\sb\sc}\n\s\s%\slsort\s-index\send-1\s$l\s\s\s\s;#\sWRONG\sWAY\sROUND!\n\s\s{a\sc\sb}\s{d\sb\sc}\n\nThe\sfault\sis\sbecause\sSortCompare\sin\stclCmdIL.c\salways\nsets\s'index'\sto\s'listLen\s-\s1'\swhen\s'infoPtr->index'\sis\nless\sthan\s-1\sinstead\sof\susing\sthe\svalue\sthat\sis\nactually\sthere\s(i.e.\s'listLen\s+\s1\s+\sinfoPtr->index')
J foundin obsolete:\s8.4a4
J priority 5\sMedium
J resolution None
J status Open
J submitter dkf
J subsystem 17.\sCommands\sI-L
J title [lsort\s-index\send-1]\sproblem
J type Bug
K 465674ffffffffffffffffffffffffffffffffff
U dkf
Z 969438a27b16b6607db8f47b3838515b