Q: how to change path separator in command output?
Robert Collins
robertc at robertcollins.net
Sun Aug 3 23:29:50 BST 2008
On Sat, 2008-08-02 at 09:28 -0700, C. Mundi wrote:
> Hi. New user question.
>
> I've just skimmed the users guide and started playing with bzr 1.6b3
> on a pair of Linux and WinXP boxes.
>
> I'm already thinking about ways to integrate bzr into our build
> process, so...
>
> Paths in command output use the solidus (i.e., /) for path separators
> in console output both on Windows and Linux.
>
> I might have expected that bzr would use Python's os.sep.which would
> give a reverse solidus on Windows, but apparently not. There must be
> a good reason for this, though I did not find a clear one in the gmane
> archives.
>
> Is there a way to control the path-separator behavior, or is there a
> reason I would not want to? I'm just starting to think about this, as
> you can tell.
We normalise all paths at entrance to bzr and use / thereafter; I think
we accept \ on windows; I *thought* we did write \ on output there but
perhaps I'm mistaken - unless you are running with cygwin's python
perhaps?
-Rob
--
GPG key available at: <http://www.robertcollins.net/keys.txt>.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: This is a digitally signed message part
Url : https://lists.ubuntu.com/archives/bazaar/attachments/20080804/e498a217/attachment.pgp
More information about the bazaar
mailing list