Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 18537

Summary: after unmerging nano and emerging vim the EDITOR variable still point to nano
Product: Gentoo Linux Reporter: Andrea Barisani (RETIRED) <lcars>
Component: [OLD] UnspecifiedAssignee: Gentoo Linux bug wranglers <bug-wranglers>
Status: RESOLVED FIXED    
Severity: normal    
Priority: High    
Version: unspecified   
Hardware: All   
OS: Linux   
See Also: https://bugs.gentoo.org/show_bug.cgi?id=819342
Whiteboard:
Package list:
Runtime testing required: ---

Description Andrea Barisani (RETIRED) gentoo-dev 2003-03-31 11:23:13 UTC
Hi guys! 
 
/etc/env/00basic contains the EDITOR variable, even after 
"emerge unmerge nano ; emerge vim" the variable is still contains "/bin/nano". 
 
Of course a simple export "EDITOR=vi" or editing /etc/profile correct this issue, 
however it can be tricky for non-expert users. 
 
This is evident when someone tries to edit crontabs with 'crontab -e'. 
 
Can we simply automate this when emerging your favorite editor? 
 
Bye 

Reproducible: Always
Steps to Reproduce:
1. emerge unmerge nano 
2. emerge vim 
3. crontab -e 
Actual Results:  
/bin/nano No such file or directory 

Expected Results:  
use the default installed editor
Comment 1 Chuck Brewer 2003-03-31 15:04:29 UTC
In the newer baselayout(s) this will be user settable inside /etc/rc.conf, as there are conflicts with making it automated.
Comment 2 Seemant Kulleen (RETIRED) gentoo-dev 2003-03-31 15:05:16 UTC
please see, for instance, baselayout-1.8.6.4-r1