tar --use-compress-program is broken on OSX
<p>I installed pigz via homebrew on my Macbook Air (OS X 10.10.5) to get better performance for compress/decompress.</p>

<p>To compress, I use <code>tar --use-compress-program=pigz -cf test.tgz test</code> and it's ok.</p>

<p>But the command to uncompress, <code>tar --use-compress-program=pigz -xf test.tgz</code> output error:
<code>
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
</code>
Or sometimes it output:
<code>
tar: Unrecognized archive format
pigz: abort: write error on &lt;stdout&gt; (Broken pipe)
tar: Child process exited with status 32
tar: Error exit delayed from previous errors.
</code></p>

<p>I read the <a href="https://developer.apple.com/library/mac/documentation/Darwin/Reference/ManPages/man1/tar.1.html" rel="nofollow">manual of tar</a>, and have no clue why it doesn't work. </p>

<p>I noticed that even <code>tar --use-compress-program=gzip -xf test.tgz</code> generate the same error. So is this a bug of OSX's tar implementation?</p>

<p>Note: I know pipe style <code>pigz -d test.tgz | tar -xf</code> works and in this case I could also just use <code>tar -xf test.tgz</code> which call built-in gzip. But I just want to confirm whether it is a bug.</p>