Version 1 of file split

Updated 2003-10-02 21:30:40

file split name

Returns a list whose elements are the path components in name. The first element of the list will have the same path type as name. All other elements will be relative. Path separators will be discarded unless they are needed ensure that an element is unambiguously relative. For example, under Unix

 file split /foo/~bar/baz

returns / foo ./~bar baz to ensure that later commands that use the third component do not attempt to perform tilde substitution.


See also:


Tcl syntax help - Category Command