/etc/conf.d/basic is missing, causing /etc/profile to generate errors. If /etc/conf.d/basic is being phased out, need to remove appropriate line from /etc/profile and add EDITOR variable to the default /etc/rc.conf
What errors ?
The error message: ------------------------------------------------------- jeld@mitechka jeld $ su - Password: -bash: /etc/conf.d/basic: No such file or directory -------------------------------------------------------- Relevant lines in the /etc/profile ----------------------------------------------------------- # Extract the value of EDITOR [ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf; echo $EDITOR`" 2>/dev/null [ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic; echo $EDITOR`" 2>/dev/null [ -z "$EDITOR" ] && EDITOR="/bin/nano" ------------------------------------------------------------
---------------------------------------- azarah@nosferatu tmp $ su - KeyChain 2.0.1; http://www.gentoo.org/projects/keychain Copyright 2002 Gentoo Technologies, Inc.; Distributed under the GPL * Found existing ssh-agent at PID 4079 nosferatu root # ----------------------------------------- What SHELL ? Could you try: --------------------------------------------------- # Extract the value of EDITOR [ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`" [ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`" [ -z "$EDITOR" ] && EDITOR="/bin/nano" --------------------------------------------------- BTW: /etc/conf.d/basic is not being phased out, its just an optinal config file that could be used instead of /etc/rc.conf ...
And ?
bash-2.05b-r3
I had the same problem until I remembered that I has chosen not to merge the new version of /etc/rc.conf in favour of my existing /etc/rc.conf. when I looked back at the "new" rc.conf I noticed the lines # Set EDITOR to your preferred editor. EDITOR="/bin/nano" #EDITOR="/usr/bin/vim" #EDITOR="/usr/bin/emacs" These were lacking in my /etc/rc.conf, by adding an EDITOR line the problem was resolved because /etc/profile no longer had to look beyond /etc/rc.conf for EDITOR variable. Did you choose not to upgrade rc.conf after emerging baselayout? If so add the EDITOR line and the error message will cease to exist StuBear
Yes, I did it and the message went away. It is still a bug though, since rc.conf is a file which almost everyone will customize in some way, and /etc/conf.d/basic is still refered to in the /etc/profile although the script doesn't get to that line now. We need to either remove that line from /etc/profile or restore /etc/conf.d/basic to where it is supposed to be.
Well, does my changes in comment #3 fix it ?
changing the lines in /etc/profile as you suggested to: ------------------------------------------------ # Extract the value of EDITOR [ -z "$EDITOR" ] && EDITOR="`. /etc/rc.conf 2>/dev/null; echo $EDITOR`" [ -z "$EDITOR" ] && EDITOR="`. /etc/conf.d/basic 2>/dev/null; echo $EDITOR`" [ -z "$EDITOR" ] && EDITOR="/bin/nano" --------------------------------------------------- works fine, with or without EDITOR in /etc/rc.conf. looks good to me StuBear
Yes it does.
Ok, fixed in CVS.