[darcs-users] Environment variable does not work (especially DARCS_EDITOR)
Andreas Känner
a.kaenner at meilenstein.de
Wed Apr 13 11:24:09 UTC 2005
Am Wed, 13 Apr 2005 12:56:40 +0200 schrieb Tommy Pettersson
<ptp at lysator.liu.se>:
> On Wed, Apr 13, 2005 at 08:56:23AM +0200, Andreas Känner wrote:
>> I want to use pico as an editor for long descriptions, but darcs always
>> use emacs. I've changed my .profile to set the environment variable, but
>> that does not help. Here is my setup:
>
> darcs will try to start different editors in priority order.
> The one from the environment variable is first, of course.
> If an editor won't start for *any* reason, darcs just silently
> skips it and tries the next alternative.
>
> First you can make sure that DARCS_EDITOR gets exported an
> is used, by setting it to "beep" or something else detectable.
>
> A likely source of the problem can be that pico aborts if its
> stdin or stdout isn't a tty. I have that problem with nvi.
> If you run darcs 1.0.2 you can try and set DARCS_EDITOR to
> "pico </dev/tty >/dev/tty". If you run a later build you
> may have to write a wrapper script like
>
> #!/bin/sh
> pico </dev/tty >/dev/tty
>
> since the to-be-next stable darcs not always perform the
> redirection on the system call any longer.
>
> Or, if this turns out to be the problem, and if you know how
> to make darcs do this redirection of stdin/out in a portable
> way, fix it in the darcs source.
Thank you. I switched to nano instead and it works now
(http://www.nano-editor.org/). Maybe this info help some others.
--
Gruß,
Andreas
More information about the darcs-users
mailing list