Mail Archives: cygwin/2001/11/13/10:06:26
> -----Ursprüngliche Nachricht-----
> Von: Corinna Vinschen [SMTP:cygwin AT cygwin DOT com]
> Gesendet am: Dienstag, 13. November 2001 14:01
> An: cygwin AT cygwin DOT com
> Betreff: Re: Editing zipped files with VIM under cygwin
>
> On Tue, Nov 13, 2001 at 12:03:19PM +0100, Strohhaecker, Bernd wrote:
> > let e = executable(name)
> > This fails on my (cygwin-)system for any program:
> > :echo executable("bash")
> > Rufe Shell auf, um "(which bash) >/tmp/v645258/1 2>&1" auszuführen
> >
> > Datei "/tmp/v645258/1" kann nicht gelesen werden-1
>
> Did you install the which package? `which' is not a bash
> internal command.
Yes, I've installed latest/which/which-1.4.tar.gz
> > 2. 'bzip2 --version > xx' doesn't finish.
>
> I can reproduce that but don't know why that happens, currently.
>
> Corinna
> -----Ursprüngliche Nachricht-----
> Von: Michael Schaap [SMTP:cygwin AT mscha DOT com]
> Gesendet am: Dienstag, 13. November 2001 14:35
> An: cygwin AT cygwin DOT com
> Betreff: Re: Editing zipped files with VIM under cygwin
>
> ...
>
> As you can see, the --version flag doesn't stop bzip2 from trying to
> compress standard input.
> Possible workarounds:
>
> $bzip2 --version --help 2>qqq
>
> $bzip2 --version </dev/null >/dev/null 2>qqq
>
> - Michael
Yes, thanks, taking a look at bzip2.c shows, that there's
simply no exit-call after displaying the license.
Is the following patch reasonable ?
--
Bernd
$ diff -u bzip2.c.org bzip2.c
--- bzip2.c.org Tue Nov 13 14:43:09 2001
+++ bzip2.c Tue Nov 13 14:44:20 2001
@@ -1632,6 +1632,7 @@
" \n",
BZ2_bzlibVersion()
);
+ exit(1);
}
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/
- Raw text -