[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#10990: 24.0.94; Uncompressing files

From: Eli Zaretskii
Subject: bug#10990: 24.0.94; Uncompressing files
Date: Mon, 12 Mar 2012 19:29:44 +0200

> Date: Mon, 12 Mar 2012 08:46:50 +0100
> From: Dani Moncayo <address@hidden>
> Cc: address@hidden
> In the standard MinGW/MSYS distribution, "gzip" program is designed to
> do both things.  In fact "gzip -h" shows:
>  C:\emacs>gzip -h
>  Usage: gzip [OPTION]... [FILE]...
>  Compress or uncompress FILEs (by default, compress FILES in-place).
>  [...]

Can I persuade you to use the native Windows binaries instead?

> So, in this case, "gunzip" is unnecessary.

Well, evidently, it is necessary ;-)

> BTW, I tried to copy "gzip.exe" as "gunzip.exe" as you suggested, but
> it doesn't work, because Emacs invokes "gunzip" without "-d"
> (obviously), so it doesn't work.

gunzip doesn't need -d, it knows by itself that it needs to

No, I guess you have some version of gzip where the maintainers
decided not to change the behavior according to the name of the
program.  Or maybe the MSYS port has a bug in comparing the program
name with "gunzip" (the .exe suffix needs to be stripped).

> A workaround that does work (I've just tested it) is to create a file
> "gunzip.bat" with a single line "gzip -d %1 %2 %3 %4", and store it in
> the same folder as "gzip.exe".

Yep, that's another way of solving this conundrum.

reply via email to

[Prev in Thread] Current Thread [Next in Thread]