> From: Mark Benedetto King [mailto:bking@answerfriend.com]
> Sent: 16 April 2002 02:45
[...]
> > This may sound ridiculous, but I'm in a ridiculous sort of mood. :-)
> > We *could* do a brute-force loop of sorts.
> >
> > command = <get command from env>
> > loop:
> > err = <run command>
> > if <err means that command wasn't found> && <command has a space in it>
> > while <command has spaces in it>
> > <prepend stuff after the last space in command to the args list>
> > <remove stuff after the last space in command from command>
> > goto loop;
> > end
> > else
> > return err;
> >
>
> This doesn't work if you have
>
> /path/to/foo
>
> and you want to have EDITOR="/path/to/foo dir/program arg1 arg2"
>
> You need an escape mechanism. Like
>
> "/path/to/foo\ dir/program arg1 arg2"
>
> for example.
>
> One way would be to make stringlist_to_array support escaped
> spaces.
This sounds like the least painfull method. It only requires
windows users to escape their path to the editor. If that is
unacceptable I'm afraid we are going to have to see another
#if WIN32 in the code.
Sander
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 16 15:43:43 2002