uplevel #0 source <filename with spaces>
- From: Phil Mercurio <mercurio@xxxxxxxxx>
- Date: Sun, 30 Sep 2007 09:18:36 -0700
What's the right way to handle this:
uplevel #0 source [file join $dir file.tcl]
if $dir may contain spaces? I've tried all sorts of
ways to quote the filename to protect it, nothing seems
to work. The only solution I've come up with is regsub:
uplevel #0 source [regsub -all " " \
[file join $dir file.tcl] "\\ "]
but there's got to be a better way. Is there?
Thanks,
Phil
--
Phil Mercurio
mercurio@xxxxxxxxx
http://www.thyrd.org/mercurio
.
- Follow-Ups:
- Re: uplevel #0 source <filename with spaces>
- From: Kaitzschu
- Re: uplevel #0 source <filename with spaces>
- Prev by Date: Re: OT: load distribution algorithm
- Next by Date: Re: uplevel #0 source <filename with spaces>
- Previous by thread: What is the meaning for format #%02x%02x%02x
- Next by thread: Re: uplevel #0 source <filename with spaces>
- Index(es):
Relevant Pages
|