15

In Windows PowerShell (if it matters), I would like to decompress a zip file with gzip with the argument --decompress, but unfortunately it doesn't work. Please look at the screenshot below.

gzip --decompress "colorbox.zip"

its result:

gzip: colorbox.zip: unknown suffix -- ignored

gzip --decompress colorbox.zip ---- gzip: colorbox.zip: unknown suffix -- ignored

Do you have any ideas how to get rid of this error? (I have to use it, because I'm using Drush, which uses it.)
By the way, I have GnuWin32 installed.


Another screenshot, just to make it clear it was caused by Drush 7.x-5.4:

gzip --decompress when using drush colorbox-plugin

After upgrading to 7.x-5.8:

unzip after upgrading to 7.x-5.8, drush colorbox-plugin

in PowerShell, unzip works:

drush colorbox-plugin in PowerShell already works

So with the help of Jeff, I realized that something's wrong with the MIME-type detection in Drush 7.x-5.4. Solved. Thanks, Jeff!

Sk8erPeter
  • 1,140

1 Answers1

30

You may be using the wrong tool.

gzip is file compressor/decompressor for files that generally have the file extension .gz and cannot extract files from a file like colorbox.zip. On linux you would use zip and unzip to add and extract files in a zip file. Maybe gnuwin32 has the same zip/unzip programs?

Jeff
  • 466