Fix variables in recipes, prefix expansion, and -a switch behavior

This commit is contained in:
Daniel Jones 2013-03-18 20:37:01 -07:00
parent 82ec5bfab4
commit 913af90c60
5 changed files with 15 additions and 6 deletions

View file

@ -234,9 +234,10 @@ func expandSuffixes(input string, stem string) string {
}
c, w := utf8.DecodeRuneInString(input[j:])
expanded = append(expanded, input[i:j]...)
if c == '%' {
expanded = append(expanded, stem...)
i += w
i = j + w
} else {
j += w
c, w := utf8.DecodeRuneInString(input[j:])