Path separator
Wouter van Heyst
larstiq at larstiq.dyndns.org
Fri Oct 28 23:53:33 BST 2005
On Fri, Oct 28, 2005 at 05:25:54PM -0500, John A Meinel wrote:
> I'm trying to go through the code and do some cleanup stuff for windows.
> One of the things I'm trying to do is update the path code so that it
> always uses forward slashes internally.
> Part of this is Robert's desire that all paths internally are considered
> url encoded.
> The issue is that when you finally get down to printing a path, the only
> paths that should be switched to '\' are local paths.
> Because you don't want to change remote paths
> (http:\\bazaar-ng.org\bzr\bzr.dev)
Reminds me of a problem in the 0.0.5 era with urlgrabber calling abspath
on urls, ugh.
> I understand the "dir" doesn't handle forward slashes properly, because
> it uses them as options. And probably a couple of other windows console
> programs. (Though I know "cd another/path" works, though cd c:/ acts
> like cd c: not cd c:\)
cd c:/something/orother will reportedly not work at all, though cd
c:\something/orother does.
> I would like to re-iterate that Windows people who are comfortable with
> the shell, are probably comfortable enough to handle the forward versus
> backslash issues, and having a consistent interface between platforms
> makes things easier.
>
> I'm just thinking that if you start asking for a remote file, you need
> to make sure that you are using forward slashes, but local files need
> back slashes seems bad form.
I'm not fond of them, but I'm afraid always using slashes will break.
Wouter van Heyst
More information about the bazaar
mailing list