This commit is contained in:
Florian Limberger 2020-04-23 19:06:36 +02:00 committed by GitHub
commit 88452a9334
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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)