Posted to tcl by thomas at Tue Sep 27 19:21:39 GMT 2011view raw
- # Bug #1 : why $foo1 != $foo2 !?
- cd C:/
- set foo1 [file join [pwd] foo/]
- set foo2 [file join C:/ foo/]
- puts "foo1=*$foo1*"
- puts "foo2=*$foo2*"
- # Bug #2 : why normalize works differently for the same actual string !?
- set fooFromStr "C:/foo/"
- if { $foo1 eq $fooFromStr } {
- puts "Yes, I'm not crazy, foo1 eq fooFromStr !"
- }
- puts "norm foo1 =*[file normalize $foo1 ]*"
- puts "normFormStr=*[file normalize $fooFromStr]*"