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

Re: [PATCH] fixes svn's chdir before invoking $EDITOR for commit log message

From: Alexis Huxley <ahuxley_at_gmx.net>
Date: 2002-08-23 18:42:51 CEST

> > Is '<envvar>=<value> <command>' portable?
>
> No.
>
> $ csh
> debian2:~> XXX=yyy vi
> XXX=yyy: Command not found.
>
> It may not work in old Bourne shells either, it's so long since I used
> one I can't remember.

Damn, of course, thanks. How about invoking python; is it portable to
call:

        python -c 'import os; print os.getcwd()'

? Maybe I could have the test internally assign that to 'EDITOR' in
the environment (Python must have equivalent of 'putenv(), right?),
and then invoke 'svn commit', and see what the editor thought cwd was.

Thanks for the patch comments; I'll wait a bit to see if there are
more, and then I'll repost it with advised corrections.

Alexis

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@subversion.tigris.org
For additional commands, e-mail: dev-help@subversion.tigris.org
Received on Fri Aug 23 18:43:40 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.