hg commit doesn't respect EDITOR

Kevin Smith yarcs at qualitycode.com
Wed Jun 1 16:33:01 UTC 2005


Jake Edge wrote:
> Is something in your .bashrc or .profile or somesuch resetting EDITOR 
> perhaps?  does 'env | grep ED' show what you think it should?

Dunno...

---
kevins at aria:~$ env | grep ED
kevins at aria:~$ set | grep ED
EDITOR=nano
kevins at aria:~$ echo $EDITOR
nano
kevins at aria:~$ echo $HGEDITOR

kevins at aria:~$ tail .bashrc
# this, if it's already enabled in /etc/bash.bashrc and /etc/profile
# sources /etc/bash.bashrc).
#if [ -f /etc/bash_completion ]; then
#    . /etc/bash_completion
#fi


EDITOR=nano

kevins at aria:~$ $EDITOR
---

That last command brought up nano, as I would expect. Not sure why 
$EDITOR doesn't appear in the env output but does show up in set. I've 
never quite figured out the multiple levels of environment variables in 
linux/bash.

Kevin



More information about the Mercurial mailing list