Fix a number of things.

This commit is contained in:
Daniel Jones 2013-03-09 20:54:13 -08:00
parent 6e0d8979be
commit 8cbbe9c53c
7 changed files with 105 additions and 61 deletions

View file

@ -154,7 +154,9 @@ func expandSigil(input string, vars map[string][]string) ([]string, int) {
varvals, ok := vars[varname]
if ok {
return varvals, offset
}
} else {
return []string{"$" + input[:offset]}, offset
}
}
return []string{"$" + input}, len(input)