Skip to content
Tcl Source Code Ticket Change Details
Login

Ticket Change Details

Overview

Artifact ID: 01c4a14eb76fc7873c19dbde166bcbf339acf600
Ticket: 1047097fffffffffffffffffffffffffffffffff
Possible parsing problem. "list" command inccorectly assigns
User & Date: nobody on 2004-10-18 18:13:48
Changes

  1. icomment:
    Logged In: NO 
    
    I am not sure about cases containing chars like [ and { but
    at least this:
    
    input: join $l, |
    output: 1|2|3,
    
    is IMHO perfectly OK - list $l is converted to string, then
    comma is
    appended to it while forming the first arg to 'join', then
    it is converted
    back to list because 'join' wants a list.
    
    In fact it has nothing to do with lists at all, the only
    question might be
    whether all those combinations of special characters in
    arguments
    are written in the best possible quoting style and whether
    parser could enforce a better style, for example:
    
    input: join $l} |
    output: 1|2|3}
    
    is rather unfortunate when used as part of bigger script, I
    would
    rather backslash-escape the brace:
    
    input: join $l\} |
    output: 1|2|3}
    
    Vaclav Hanzl
    
    
    
  2. login: "nobody"
  3. mimetype: "text/plain"
  4. username: "nobody"