3 # Copyright (C) 2004-2006, The Perl Foundation.
6 # the following lines re-execute this as a tcl script
7 # the \ at the end of these lines makes them a comment in tcl \
8 use lib qw(languages/tcl/lib tcl/lib lib ../lib ../../lib); # \
12 source lib/test_more.tcl
23 } 5b {beginning of word}
31 set a "St\[ring Parsing"
33 } {St[ring Parsing} {escaped bracket}
36 set a "St\\\[ring Parsing"
38 } {St\[ring Parsing} {escaped backslash, escaped brace}
43 } {[} {embedded escaped open bracket}
48 } {]} {embedded escaped close bracket}
53 } {2 3} {command subst inside string}
56 set b [set a [set b 2]]
57 } 2 {nested command sub}
64 set b [expr {4*[llength "]"]}]
65 } 4 {] in " in [expr]}
68 set b [expr {4*"[llength "]"]"}]
69 } 4 {" in ] in " in [expr]}
76 } 3 {newline after last command}