[wplug] vars in bash?
Jonathan Billings
billings at negate.org
Sun Jan 21 13:19:55 EST 2007
Zach wrote:
> EDITOR=/usr/bin/emacs:"${EDITOR}"
I don't know where you got the impression that this would work, but it
definitely won't. Even if $EDITOR was previously unset, it'd set
$EDITOR to "/usr/bin/emacs:" which is what programs will try to use as
your editor. There is no program /usr/bin/emacs: on my computer, and I
doubt there's one on yours. You're probably used to the $PATH variable,
which is a colon-delimited string. $EDITOR can only be the path to an
executable.
If you expected to have it choose the default, and if it isn't provided,
use emacs, what you probably mean is something like this:
export EDITOR=${EDITOR-/usr/bin/emacs}
(If I recall correctly, feel free to correct me)
--
Jonathan S. Billings <billings at negate.org>
More information about the wplug
mailing list