Tk Library Source Code

View Ticket
Login
Ticket UUID: 1042987
Title: Extra list layers on output of get
Type: Bug Version: None
Submitter: btheado Created on: 2004-10-08 12:11:53
Subsystem: treeql Assigned To: coldstore
Priority: 5 Medium Severity:
Status: Closed Last Modified: 2004-10-21 12:29:53
Resolution: Fixed Closed By: coldstore
    Closed on: 2004-10-21 05:29:53
Description:
Here is one unexpected behavior I found.  There seem to
be extra list layers on elements of the list returned
by get when that list element contains spaces or square
braces.

    package require treeql
    package require struct::tree
    package require tcltest
    namespace import tcltest::*
    set t [struct::tree]; ::treeql q -tree $t
    test get.1 {attributes with special characters} {
        $t insert root end n1 n2 n3
        $t set n1 title hello
        $t set n2 title "hello there"
        $t set n3 title {[hello]}
        q query root children get title
    } [list hello {hello there} {[hello]}]
    $t destroy; q destroy

Output:

 ---- Result was:
 hello {{{hello there}}} {{{[hello]}}}
 ---- Result should have been (exact matching):
 hello {hello there} {[hello]}
 ==== get.1 FAILED
User Comments: coldstore added on 2004-10-21 12:29:53:
Logged In: YES 
user_id=19214

Fixed, thanks Brian.