Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 3fe713c94ca977efad36d8aa8f4a22bdc12abfe8
Ticket: 673725ffffffffffffffffffffffffffffffffff
splitx in core
User & Date: nobody on 2003-01-24 00:56:03
Changes

  1. assignee changed to: "dkf"
  2. cmimetype changed to: "text/plain"
  3. comment changed to:
    split command does not handle multiple white space properly. 
    
    TCL split should work like the Perl split command. I know its 
    documented that's the way TCL split works. But what we want is 
    the valid data not a bunch of null token {}  tht have to be 
    discarded by a few more line of code.
    
    Example: 
    $line = 1     2     3     4     5  (mutiple spaces between the numbers)
    
    Perl:
    parts[] = split ( ' ' , $line)
    produces an array with the 5 numeric tokens 1,2,3,4,5
    
    TCL:
    
    set parts [split $line]
    produces an array with 1 {} {} {} {} {} 2 {}  etc
    Then you have to get rid of the {} by extracting to another array 
    only the valid numeric tokens 1,2,3,4,5
    
  4. foundin changed to: "obsolete: 8.3"
  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: "18. Commands M-Z"
  10. title changed to:
    split command  does not handle multi whitespace properly
    
  11. type changed to: "RFE"