petdance/scratch — Issue #197: OS.cwd returns platform specific slashes...
Author: petdance
Created: 2011-11-01 05:30:11+00:00
State: open
Labels: core, Pri-normal, Sev-low, todo

... but some languages need a way to get agnostic slashes. Rather than have every HLL implement this, there should be some way to canonicalize the path, and a way to get the platform-specific path. (This will allow hlls to pick whichever method they prefer.)

I don't particularly care about the implementation, as long as I can make

{{{
C:\Tcl\bin>tclsh
% puts [pwd]
C:/Tcl/bin
}}}

work.

This issue originally opened as http://rt.perl.org/rt3/Ticket/Display.html?id=39853
Trac ID #1282