Tcl file separator

Nellis, Kenneth Kenneth.Nellis@acs-inc.com
Wed Jan 26 00:27:00 GMT 2011


From: Nellis, Kenneth
> I'm thinking that Cygwin Tcl's "pwd" should match Cygwin's and
> that "file separator" should return a Linux one.
> 
> knellis@COBQDPPJ1 ~
> $ pwd
> /cygdrive/d/cyghome/knellis
> 
> knellis@COBQDPPJ1 ~
> $ /cygdrive/c/cygwin/bin/tclsh84.exe
> % pwd
> D:/cyghome/knellis
> % file separator
> \
> %

I was hoping my OP would get some traction.
It seems the basic purpose of Tcl's set of "file" commands
is to allow one to write platform-independent scripts that
need to manipulate pathnames. The Cygwin implementation seems 
to be broken.

--Ken Nellis


More information about the Cygwin mailing list