Fix an issue with shell expansions.

This commit is contained in:
Daniel Jones 2013-08-13 13:03:21 -07:00
parent c44de7fb69
commit a005edc4a7
3 changed files with 20 additions and 16 deletions

View file

@ -107,9 +107,9 @@ func parsePipeInclude(p *parser, t token) parserStateFun {
p.basicErrorAtToken("empty pipe include", t)
}
args := make([]string, len(p.tokenbuf)-1)
for i := 1; i < len(p.tokenbuf); i++ {
args[i-1] = p.tokenbuf[i].val
args := make([]string, len(p.tokenbuf))
for i := 0; i < len(p.tokenbuf); i++ {
args[i] = p.tokenbuf[i].val
}
output, success := subprocess("sh", args, "", true)