Skip to content

os/exec: Command() SPLAT help #20893

@davidrenne

Description

@davidrenne

What version of Go are you using (go version)?

1.8

What operating system and processor architecture are you using (go env)?

amd64

What did you do?

I cant seem to exec.Command() on any parameter which has a * or splat character. They all fail.

What did you expect to see?

I expect it to run like it runs in the shell.

What did you see instead?

err returned.

Please help!! My workaround is to write my shell script to disk and exec it and it works perfectly fine.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions