Update github.com/mvdan/sh

This commit is contained in:
Andrey Nering
2017-05-27 11:17:49 -03:00
parent 460297e43a
commit c40148a52e
12 changed files with 788 additions and 442 deletions

View File

@@ -146,7 +146,9 @@ func (r *Runner) unTest(op syntax.UnTestOperator, x string) bool {
case syntax.TsNempStr:
return x != ""
//case syntax.TsOptSet:
//case syntax.TsVarSet:
case syntax.TsVarSet:
_, e := r.lookupVar(x)
return e
//case syntax.TsRefVar:
case syntax.TsNot:
return x == ""