[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: <cmpilato_at_collab.net>
Date: 2002-04-29 21:05:09 CEST

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

> Marcus Comstedt <marcus@mc.pp.se> writes:
>
> > > All that said, +1 on using system() from me, too, because
> > > it *is* a lot more powerful than execl(), and because it's
> > > what people expect from $EDITOR.
> >
> > Exactly. You are more likely to break peoples expectations by trying
> > to play big brother than by simply doing what everybody else does.
>
> It turns out that cvs doesn't call system(). It does a fork/execvp.

*Ding!* Didn't I mention this already a week ago? Maybe that got
edited out of my post. Our APR-using functionality is equivalent to
CVS's functionality. IIRC, they use strtok() to break up the EDITOR
line into a command and args, and pass that off to execvp() ... just
like we were doing.

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Mon Apr 29 21:10:34 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.