It seems kinda silly to go through such acrobatics in /etc/profile to get EDITOR. In particular, I think it would be nice to avoid calling gawk for every login shell! Here's a much shorter method for doing the same thing... # 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 export EDITOR
In CVS in a bit, thanks!