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

Re: Reminder: $EDITOR with spaces?

From: Marcus Comstedt <marcus_at_mc.pp.se>
Date: 2002-04-28 23:42:24 CEST

Philip Martin <philip@codematters.co.uk> writes:

> Yes, the patch provides some of the expected behaviour on Unix. I
> don't know enough about Windows to say what would be expected there,
> what is the conventional behaviour on that platform?

I expect that it is to put double quotes around paths with spaces in
them. This is how it's done on the command line and in the registry
at least. Using backslash as an escape character would probably be
considered confusing since backslash is the directory separator on
w*ndows. Although it wouldn't actually cause any clashes as long as
only `\ ' is recognized as an escape, and no directories have names
starting with space...

Being able to use double quotes for escaping spaces is probably part
of the expected behaviour on UNIX as well, since system() allows this,
so using them in favour of \ is probably a better match on the whole.
Although personally I'd rather see it use system() so that it
automatically conforms to the OS's conventions, whatever they happen
to be.

  // Marcus

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sun Apr 28 23:47:06 2002

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.