Hacker News new | ask | show | jobs
by lgeorget 1184 days ago
I think it would only makes sense if the target system on which the script may run has `zip` but not a version of `tar` supporting the `-z` option. That's certainly unlikely to ever happen.

There's also `tar -cvf - | zip blah.zip -` with the idea that it's a poor man's way to parallelize the `tar` and `zip` processes but I don't think it makes a real difference in recent implementations of `tar`. At least in a couple of tests I've just run, it's just as fast.