[wplug] vars in bash?

Zach netrek at gmail.com
Sun Jan 21 19:10:01 EST 2007


On 1/21/07, Jonathan Billings <billings at negate.org> wrote:
>
> 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.

Yeah.

> 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}

Thanks. So just to be sure that is "EDITOR-" (a hyphen after EDITOR) yes?

Zach


More information about the wplug mailing list