> > Just curious, 'file tail' did not work for you? I thought it worked
> > cross platform...
>
> It would if the backslashes were converted to forward slashes.  (It ought
> to work with backslashes under Windows.)
>
> % set tcl_platform(os)
> Linux
> % file tail {c:\windows\foo.bar}
> c:\windows\foo.bar
> % file tail [string map [list \\ /] {c:\windows\foo.bar}]
> foo.bar

(hobbs) 50 % file tail {c:\windows\foo.bar}
foo.bar
(hobbs) 50 % info patchlevel
8.4b1

  Jeff Hobbs                     The Tcl Guy
  Senior Developer               http://www.ActiveState.com/

Reply via email to