an option to print slash instead of backslash for stat

Mads Kiilerich mads at kiilerich.com
Tue Jun 5 20:02:20 UTC 2007


Alexis S. L. Carvalho wrote, On 06/05/2007 05:54 PM:
> Help me understand the problem:
>
> - what's the problem with using backslashes on windows?
>   

It makes it hard/impossible to use modern and powerful tools not yet 
available out-of-the-box. Such as sh and the Unix tool chain ...

> - would every windows user want to use slashes?
>   

Nope. It works some places, but not everywhere...

> - do you (almost) always want slashes, or are there still many cases
>   where you want backslashes?  I.e. do you always specify --slash
>   (either on the command line or in the [defaults] section of hgrc)?
>   

If you are using a plain cmd prompt then you want backslashes in order 
to get tab-completion etc.

If you are using cygwin or msys, then you want slashes.

(If IIRC cygwin and msys differs in that cygwin wraps the FS api and 
translates /cygwin/c/Foo to c:\foo, while msys translates from /c/Foo to 
c:\foo whenever a filename is handed over to non-msys programs.)

/Mads



More information about the Mercurial mailing list