title: exec.Command().Run() not executing command properly in Windows
body: <p>I have a linting utility called config-lint: <a href="https://github.com/stelligent/config-lint" rel="nofollow noreferrer">https://github.com/stelligent/config-lint</a> which I downloaded for windows.</p>
  <p>I downloaded it and added it to the path and able to run it as seen below</p>
  <pre><code>E:\&gt;config-lint -terraform config-lint-master\example-files\config [   {
      &quot;AssertionMessage&quot;: &quot;None expression fails: &quot;,
      &quot;Category&quot;: &quot;resource&quot;,
      &quot;CreatedAt&quot;: &quot;2020-10-02T10:23:19Z&quot;,
      &quot;Filename&quot;: &quot;config-lint-master\\example-files\\config\\s3.tf&quot;,
      &quot;LineNumber&quot;: 43,
      &quot;ResourceID&quot;: &quot;bucket_with_not&quot;,
      &quot;ResourceType&quot;: &quot;aws_s3_bucket_policy&quot;,
      &quot;RuleID&quot;: &quot;S3_NOT_ACTION&quot;,
      &quot;RuleMessage&quot;: &quot;Should not use NotAction in S3 bucket policy&quot;,
      &quot;Status&quot;: &quot;WARNING&quot;   },   {
      &quot;AssertionMessage&quot;: &quot;Not expression fails&quot;,
      &quot;Category&quot;: &quot;resource&quot;,
      &quot;CreatedAt&quot;: &quot;2020-10-02T10:23:19Z&quot;,
      &quot;Filename&quot;: &quot;config-lint-master\\example-files\\config\\security_group.tf&quot;,
      &quot;LineNumber&quot;: 1,
      &quot;ResourceID&quot;: &quot;allow_all&quot;,
      &quot;ResourceType&quot;: &quot;aws_security_group&quot;,
      &quot;RuleID&quot;: &quot;SG_INGRESS_ALL_PROTOCOLS&quot;,
      &quot;RuleMessage&quot;: &quot;Best practices recommend not opening all protocols and ports to ingress traffic&quot;,
      &quot;Status&quot;: &quot;WARNING&quot;   },
  </code></pre>
  <p>--- more output to follow</p>
  <p>I wish to achieve the same via the exec package in go Lang. Below is my code</p>
  <pre><code> args := []string{&quot;-terraform&quot;, &quot;E:\\config-lint-master\\example-files\\config&quot;}
      app := &quot;config-lint&quot;
      cmd := exec.Command(app, args...)
      //cmd := exec.Command(&quot;config-lint&quot;, &quot;-terraform&quot;, &quot;E:\\config-lint-master\\example-files\\config&quot;)
      cmd.Stdout = &amp;bytes.Buffer{}
      cmdOp := &amp;bytes.Buffer{}
      cmd.Stdout = cmdOp
      err := cmd.Run()
      if err != nil {
          fmt.Println(&quot;Error-&gt;&quot;, err)
      } else {
          fmt.Println(cmdOp)
      }
  </code></pre>
  <p>On executing this, I get the error as</p>
  <p>Error-&gt; <strong>exit status 4294967295</strong></p>
  <p>I have no idea what this means, I'm new to Go Lang.</p>
  <p>Note: When I run it using the below by passing a file name at the end, it then executes. It doesn't seem to be working when a directory is passed.</p>
  <pre><code> args := []string{&quot;-terraform&quot;, &quot;E:\\config-lint-master\\example-files\\config\\elb.tf&quot;}
  </code></pre>
  <p>config-lint can be run as below</p>
  <p><strong>config-lint -terraform &lt;FILE_OR_DIRECTORY_OF_TF_FILES&gt;</strong></p>
  <p>Ref: <a href="https://stelligent.github.io/config-lint/#/terraform" rel="nofollow noreferrer">https://stelligent.github.io/config-lint/#/terraform</a></p>
  <p>Go Lang Version: go version go1.14.6 windows/amd64</p>
  <p>OS: Win 10 Home, Build:19041.450</p>