Merge 90057b78e4 into 73d1b31466
This commit is contained in:
commit
88452a9334
1 changed files with 3 additions and 2 deletions
5
parse.go
5
parse.go
|
|
@ -113,9 +113,10 @@ func parsePipeInclude(p *parser, t token) parserStateFun {
|
||||||
p.basicErrorAtToken("empty pipe include", t)
|
p.basicErrorAtToken("empty pipe include", t)
|
||||||
}
|
}
|
||||||
|
|
||||||
args := make([]string, len(p.tokenbuf))
|
args := make([]string, len(p.tokenbuf) + 1)
|
||||||
|
args[0] = "-c"
|
||||||
for i := 0; i < len(p.tokenbuf); i++ {
|
for i := 0; i < len(p.tokenbuf); i++ {
|
||||||
args[i] = p.tokenbuf[i].val
|
args[i + 1] = p.tokenbuf[i].val
|
||||||
}
|
}
|
||||||
|
|
||||||
output, success := subprocess("sh", args, "", true)
|
output, success := subprocess("sh", args, "", true)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue