Ticket Hash: | 34f0ea1601c7acfdf6140ff8931e29892b7287cb | ||
Title: | Use of quotes (") in pkgIndex.tcl will fail when $dir path contains spaces. | ||
Status: | Open | Type: | Code_Defect |
Severity: | Severe | Priority: | Immediate |
Subsystem: | Resolution: | Open | |
Last Modified: |
2016-09-07 16:07:31 8.81 years ago |
Created: |
2016-08-31 17:00:31 8.83 years ago |
Version Found In: | 4.1 |
User Comments: | ||||
anonymous added on 2016-08-31 17:00:31:
The use of " below means $dir will be parsed twice, and if $dir expands to a path containing spaces, the source command will fail. package ifneeded iwidgets $::iwidgets::version " package req Itk source [file join $dir colors.itcl] source [file join $dir roman.itcl] ... " anonymous added on 2016-09-07 16:07:31: The fix is to wrap the path in a list: package ifneeded iwidgets $::iwidgets::version " package req Itk source [list [file join $dir colors.itcl]] source [list [file join $dir roman.itcl]] source [list [file join $dir buttonbox.itk]] ... |