[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: cygwin and \ or /

From: Jonathan Smith <jonsmith_at_members.limitless.org>
Date: 2003-05-23 16:07:55 CEST

Since windows has no concept of an escape character to my knowledge (in
Microsoft's idiot-user based paradigm, "Who could possibly understand such
a horribly complex thing?), and since '/' is an illegal character on
windows, why not accept both slashes all the time?

Simply insert a filter around any argument that is a file name to convert
from either slash to the system's slash. For unix, this would render the
'\' as an invalid character. But, the clarity would be preferable.

I've seen this done before, but I don't know where.

Certainly, I'd like to see this behavior on Windows. Unix would be a
battle of consistency (on both sides).

j.

On Fri, 23 May 2003, [UTF-8] Branko ÄŒibej wrote:

> solo turn wrote:
>
> >did this change recently? i had the impression i always copied the
> >paths .... hmmm. maybe its the beer.
> >
> Yes, it did change recently, and it'll change some more -- we're not
> quite consistent in the client yet. The goal is to have the client on
> Windows display all paths with \ separators, so that you can cut&paste
> in the Windows command line.
>
> Cygwin can never be a primary target, because it's not the default shell
> on Windows (BTW, I also use cygwin almost exclusively). But Cygwin does
> understand \-separated paths, as long as you take care to avoid shell
> escaping.
>
> >
> >--- Branko ÄŒibej <brane@xbc.nu> wrote:
> >
> >
> >>solo turn wrote:
> >>
> >>
> >>
> >>>for command line usage out of cygwin it is not very practical that
> >>>svn uses \ as directory separator and expects / on the command
> >>>
> >>>
> >>line.
> >>
> >>
> >>>you cannot copy the path any more.
> >>>
> >>>can i somehow configure svn to use / in the output of "svn st", or
> >>>"svn up" so i could use copy-paste again?
> >>>
> >>>
> >>>
> >>Yes. You can edit svn_private_config.hw -- define
> >>SVN_LOCAL_PATH_SEPARATOR to '/' and recompile.
> >>
> >>Or, of course, if you're using cygwin, you can enclose the paths in
> >>single quites -- e.g., 'C:\foo' instead of C:\foo. That'll just
> >>work.
> >>
> >>
> >>
> >>--
> >>Brane ÄŒibej <brane_at_xbc.nu> http://www.xbc.nu/brane/
> >>
> >>
> >>
> >
> >
> >__________________________________
> >Do you Yahoo!?
> >The New Yahoo! Search - Faster. Easier. Bingo.
> >http://search.yahoo.com
> >
> >
> >
>
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri May 23 16:06:00 2003

This is an archived mail posted to the Subversion Dev mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.