Add "e" ns as yet another alias of "external".

This commit is contained in:
Qi Xiao 2016-02-22 15:26:16 +01:00
parent a3ae232585
commit c3455d9a1c

View File

@ -299,7 +299,7 @@ func (ev *Evaler) Global() map[string]Variable {
// ResolveVar resolves a variable. When the variable cannot be found, nil is
// returned.
func (ec *EvalCtx) ResolveVar(ns, name string) Variable {
if ns == "env" || ns == "external" || ns == "E" {
if ns == "env" || ns == "external" || ns == "E" || ns == "e" {
if strings.HasPrefix(name, FnPrefix) {
return NewRoVariable(ExternalCmd{name[len(FnPrefix):]})
}