Skip to content

Handling of special characters #367

@borneoa

Description

@borneoa

running jimsh from today's master branch

. set a "x2}"
x2}
. lappend a 1
x2\} 1

which is correct. But

. set a "{x2"
{x2
. lappend a 1
x2 1

looses the special character {.
The last test with tclsh 8.6.13 returns error unmatched open brace in list instead.

So, different behavior and both looks incorrect to me.
Is there a "correct" way in Tcl to describe a string value that starts with the special character {?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions