On 23 May 1997, LGAMMO.US.ORACLE.COM wrote:
> I have tcl7.5b3/tk4.1b3 installed (Solaris). Yet I get problems with
> code that looks like ...
> [file join ${VTCL_HOME} .vtclrc]
>
> Now, I do not recall tcl having a join option for file. I think
> this is meant to say: concatenate ${VTCL_HOME} and .vtclrc then
> do someting to that...
>
> So is there a new option to 'file' that I don't have or what?
> Perhaps this was added after the tcl 7.5b3 release???
Below is the "file join" command from the "file" man page. I don't know
when it was added. I would suggest upgrading to 7.6/4.2 ASAP. When I
upgraded, none of my old apps broke in any way.
file join name ?name ...?
Takes one or more file names and combines them,
using the correct path separator for the current
platform. If a particular name is relative, then
it will be joined to the previous file name argu-
ment. Otherwise, any earlier arguments will be
discarded, and joining will proceed from the cur-
rent argument. For example,
file join a b /foo bar
returns /foo/bar.
Note that any of the names can contain separators,
and that the result is always canonical for the
current platform: / for Unix and Windows, and : for
Macintosh.
...RickM...