You may want to try
exec.Command("bash", "-c", "ls *.go") // bash -c 'ls *.go'
again, check the output of the CombinedOutput and the error code.
This command, even when run through bash will fail if there are no .go
files in the _current working directory_. This last part is important,
don't assume that your Go program is being run in the current shell
working directory, especially when using go run.
> --
> You received this message because you are subscribed to the Google Groups
> "golang-nuts" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to
golang-nuts...@googlegroups.com.
> For more options, visit
https://groups.google.com/groups/opt_out.