Fix variables in recipes, prefix expansion, and -a switch behavior
This commit is contained in:
parent
82ec5bfab4
commit
913af90c60
5 changed files with 15 additions and 6 deletions
|
|
@ -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:])
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue