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

Re: svn system() replacement ?

From: Daniel Stenberg <daniel_at_haxx.se>
Date: 2002-01-28 11:07:10 CET

On Mon, 28 Jan 2002, Greg Stein wrote:

> > Can anyone tellme what I'm doing wrong or what am I missing?
>
> It may be that your editor program isn't being found? Or is it actually
> being popped up? (you didn't describe the behavior; only the exit)

Right, I wasn't verbose enough. More tests show that this fails because of
two different reasons that I need to address:

1. svn_io_run_cmd() doesn't find editors I have in my path, I must specify
   the editor with full path, which breaks the "normal" $EDITOR behavior.

2. svn_io_run_cmd() doesn't seem to pass on the environment to the child
   process in the same style system() does, which makes emacs fail to start
   with this error message: "Please set the environment variable TERM; see
   tset(1).". It makes no difference if I set TERM to vt100 or xterm before
   invoking 'svn ci', and not even 'emacs -nw' works as it says the same.
   (setting EDITOR to "/bin/vi" works though, it doesn't seem as picky).

Problem 1 could possibly be fixed by scanning the path for the command first
(do we have a way of doing that already?), but I don't know how problem 2 is
best addressed.

-- 
      Daniel Stenberg - http://daniel.haxx.se - +46-705-44 31 77
   ech`echo xiun|tr nu oc|sed 'sx\([sx]\)\([xoi]\)xo un\2\1 is xg'`ol
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Sat Oct 21 14:37:00 2006

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.