Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: d5e0b3012ffca63309f60d09dde30985e96cdbab
Ticket: 218080ffffffffffffffffffffffffffffffffff
lsort gives false error output
User & Date: nobody on 2000-10-26 00:52:57
Changes

  1. assignee changed to: "nobody"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    OriginalBugID: 1673 Bug
    Version: 8.1b2
    SubmitDate: '1999-03-31'
    LastModified: '1999-03-31'
    Severity: LOW
    Status: Closed
    Submitter: pat
    ChangedBy: stanton
    OS: Other
    Machine: NA
    FixedDate: '2000-10-25'
    ClosedDate: '1999-03-31'
    
    
    Name:
    
    Jeffrey Hobbs
    
    
    
    ReproducibleScript:
    
        (work) 4 % lsort u \374 ule uefa united uass
    
        bad option "u": must be -ascii, -command, -decreasing, -dictionary,
    
        -increasing, -index, -integer, or -real
    
        
    
        
    
        This patch only addresses obvious misuse of the lsort args (forgetting
    
        that
    
        it takes a list instead of args).  You still get bad option from:
    
        lsort a b c
    
        
    
        
    
    
    
    
    
    
    
    ObservedBehavior:
    
        This is a case of wrong # args, not bad option.
    
        
    
    
    
    
    
    
    
    DesiredBehavior:
    
        I expect to see wrong # args
    
        
    
    
    
    
    
    
    
    Patch:
    
    ewsx2 [~/src/tcl8.1b2/generic] 33 % diff tclCmdIL.c~ tclCmdIL.c
    
    2443c2443
    
    <     if (objc < 2) {
    
    ---
    
    >     if (objc < 2 || objc > 4) {
    
    
    
    
    
    
    
    
    
    PatchFiles:
    
        tclCmdIL.c
    
        
    
    
    
    
    
    
    
    
    
    The included patch is wrong.  It will not allow multiple options to be specified.
    For example:  lsort -increasing -index 0 $list
    
    This is not really a bug.
    
    
    
  4. foundin changed to: "obsolete: 8.1b2"
  5. priority changed to: "5 Medium"
  6. resolution changed to: "None"
  7. status changed to: "Open"
  8. submitter changed to: "nobody"
  9. subsystem changed to: "69. Other"
  10. title changed to: "lsort gives false error output"
  11. type changed to: "Bug"