From: <no...@so...> - 2001-02-19 10:05:54
|
Bug #119202, was updated on 2000-Oct-25 22:03 Here is a current snapshot of the bug. Project: Tcl Category: Commands I-L Status: Open Resolution: None Bug Group: 8.2 Priority: 4 Submitted by: nobody Assigned to : dkf Summary: options for lsort have no effect when only one list element Details: OriginalBugID: 3330 Bug Version: 8.2 SubmitDate: '1999-11-05' LastModified: '1999-11-11' Severity: MED Status: Assigned Submitter: techsupp ChangedBy: hobbs OS: Windows 95 FixedDate: '2000-10-25' ClosedDate: '2000-10-25' Name: keith lea ReproducibleScript: % lsort -integer f f % DesiredBehavior: i'd rather get an error message! An error would be correct in this case, while the current source just assumes this is a quick noop. -- 11/11/1999 hobbs Follow-Ups: Date: 2001-Feb-19 02:07 By: dkf Comment: Hmm. This needs a rewrite of the manual page to state that the conversion to integer/float happens as part of the comparison, and not prior to the overall sort (which I believe to be the correct behaviour.) ------------------------------------------------------- Date: 2000-Nov-30 12:32 By: dkf Comment: I don't know whether an error is correct; surely the options just control the nature of the ordering function. No ordering required, all ordering functions are happy. Plus, how could you test in the first place? Calling the ordering function with the same element for both values is a much worse idea, particularly if the ordering function was specified using -command... ------------------------------------------------------- For detailed info, follow this link: http://sourceforge.net/bugs/?func=detailbug&bug_id=119202&group_id=10894 |