From c3455d9a1ce8824981e899432fccc6cdd3a9955a Mon Sep 17 00:00:00 2001 From: Qi Xiao Date: Mon, 22 Feb 2016 15:26:16 +0100 Subject: [PATCH] Add "e" ns as yet another alias of "external". --- eval/eval.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/eval/eval.go b/eval/eval.go index b754a9a5..43e57d0b 100644 --- a/eval/eval.go +++ b/eval/eval.go @@ -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):]}) }