Test languages/tcl/t/cmd_pwd.t fails on Win32. Tcl's pwd returns the
path with backslashes, most likely because OS.cwd does too, but the test
expects forward slashes, as the result is compared with Perl's Cwd::getcwd.
The "other" Tcl returns forward slashes, too.
C:\Tcl\bin>tclsh
% puts [pwd]
C:/Tcl/bin
I'm not sure if this should be changed in languages/tcl or Parrot's OS.cwd.
Ron
--
Will "Coke" Coleda
wi...@coleda.com
I agree.
As another note, many programs are fine with forward slashes, including
Microsoft's Visual C++ compiler and Windows PowerShell.
Python seems to prefer the native representation, but also fine with
forward slashes.
C:\>python
ActivePython 2.4.3 Build 12 (ActiveState Software Inc.) based on
Python 2.4.3 (#69, Apr 11 2006, 15:32:42) [MSC v.1310 32 bit (Intel)] on
win32
Type "help", "copyright", "credits" or "license" for more information.
>>> from os import getcwd, chdir
>>> print getcwd()
C:\
>>> chdir("C:/tmp")
>>> print getcwd()
C:\tmp
Ruby seems to like the forward slashes.
C:\tmp>ruby
require 'Shell'
puts Shell.new.cwd
^Z
C:/tmp
Will this slashing madness ever end?
Ron