Path separator
John A Meinel
john at arbash-meinel.com
Fri Oct 28 23:25:54 BST 2005
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)
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:\)
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.
Not trying to throw fuel on the fire,
John
=:->
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20051028/2520e742/attachment.pgp
More information about the bazaar
mailing list