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

Re: [PATCH] $EDITOR with spaces

From: Philip Martin <philip_at_codematters.co.uk>
Date: 2002-04-16 19:52:08 CEST

cmpilato@collab.net writes:

> You know what, I reread my algorithm, and I *do* think it works in the
> case you cited:
> First, Subversion would try:
> cmd="/path/to/foo dir/program arg1 arg2"
> args=( "msg.00000.12345.tmp" )
> This would fail. We'd try:
> cmd="/path/to/foo dir/program arg1"
> args=( "args2", "msg.00000.12345.tmp" )
> This would fail.

No it wouldn't. As well as as the executable file

    /path/to/foo dir/program

which is the one I want to run, I also have one called

    /path/to/foo dir/program arg1

i.e. one with a space in the program name as well as in one of the
directories. Unfortunately this one deletes my working copy :-(

> We'd try:
> cmd="/path/to/foo dir/program"
> args=( "arg1", "arg2", "msg.00000.12345.tmp" )

I'd never get this far.

> This *should* succeed, unless APR or the OS simply doesn't allow it.
> And sure, there are probably ways to break this algorithm, but you can


> only do so much (I'm thinking about the whole "how to remove a file
> whose name is `-rf' on Unix" fun...)

To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Tue Apr 16 19:53:16 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.