As you note, it's a shell script requiring a POSIX shell, so can't be run
directly from cmd.exe
How do I use it?
If you're stuck with a brain-dead shell such as cmd.exe, you don't. However,
read it to see what it does:--
1) Ensure that the directory containing gzip.exe is in the PATH
2) Invoke 'gzip -d' with the original arguments passed to itself
So, assuming you've already taken care of (1), just invoke 'gzip -d' yourself,
instead of gunzip, (or write your own trivial gunzip.bat replacement for the
POSIX shell script).
Do I need to install some "Shell for Windows"?
If you're satisfied with running brain-dead cmd.exe, then "no"; if you prefer
something more *nix-like...
Where could I find it?
...you might consider MSYS, (from MinGW.org), or Cygwin, (from cygwin.com).
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Yes, I noted that I can invoke 'gzip -d' for gunzip.
But I also install "Make for Windows", "AutoMake for Windows" and "AutoConf
for Windows".
I realize that "configure" is also a shell script which is too complicate for
me to understand.
I found this "win-bash" and tried to use it to run shell script but if the
shell script also calls other executables then it cannot recognize it without
.exe.
Any solution?
Jeremy
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
But I also install "Make for Windows", "AutoMake for Windows" and "AutoConf
for Windows". I realize that "configure" is also a shell script which is too
complicate for me to understand.
For all of these, (well, except for a pathological dislike of automake, which
I thus avoid as much as possible), I use MSYS; (you could also consider
Cygwin). As I noted previously, MSYS is provided by MinGW.org. Packages are
hosted at SF; use the mingw-get tool to install what you need.
I found this "win-bash" ...
I've not tried that myself, but any reports I've seen, relating to it, have
been discouraging.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
gunzip is a shell script in "Gzip for Windows".
How do I use it?
Do I need to install some "Shell for Windows"?
Where could I find it?
Could you please show me the steps how to install shell and use gunzip?
Thanks.
As you note, it's a shell script requiring a POSIX shell, so can't be run
directly from cmd.exe
If you're stuck with a brain-dead shell such as cmd.exe, you don't. However,
read it to see what it does:--
1) Ensure that the directory containing gzip.exe is in the PATH
2) Invoke 'gzip -d' with the original arguments passed to itself
So, assuming you've already taken care of (1), just invoke 'gzip -d' yourself,
instead of gunzip, (or write your own trivial gunzip.bat replacement for the
POSIX shell script).
If you're satisfied with running brain-dead cmd.exe, then "no"; if you prefer
something more *nix-like...
...you might consider MSYS, (from MinGW.org), or Cygwin, (from cygwin.com).
Hi Keith,
Thanks.
Yes, I noted that I can invoke 'gzip -d' for gunzip.
But I also install "Make for Windows", "AutoMake for Windows" and "AutoConf
for Windows".
I realize that "configure" is also a shell script which is too complicate for
me to understand.
I found this "win-bash" and tried to use it to run shell script but if the
shell script also calls other executables then it cannot recognize it without
.exe.
Any solution?
Jeremy
For all of these, (well, except for a pathological dislike of automake, which
I thus avoid as much as possible), I use MSYS; (you could also consider
Cygwin). As I noted previously, MSYS is provided by MinGW.org. Packages are
hosted at SF; use the mingw-get tool to install what you need.
I've not tried that myself, but any reports I've seen, relating to it, have
been discouraging.