delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/11/13/08:36:08

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Message-Id: <5.1.0.14.2.20011113142836.03637718@imap.local.mscha.com>
X-Sender: ml AT imap DOT local DOT mscha DOT com (Unverified)
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Tue, 13 Nov 2001 14:35:16 +0100
To: cygwin AT cygwin DOT com
From: Michael Schaap <cygwin AT mscha DOT com>
Subject: Re: Editing zipped files with VIM under cygwin
In-Reply-To: <20011113140044.A21149@cygbert.vinschen.de>
References: <5A95B0B37820D511AD1500B0D0AADF774DDE49 AT lbsvnt4>
<5A95B0B37820D511AD1500B0D0AADF774DDE49 AT lbsvnt4>
Mime-Version: 1.0
X-Virus-Scanned: at mscha.org by amavisd-milter snapshot-20010714 (http://amavis.org/)

At 14:00 13-11-2001, Corinna Vinschen wrote:

> > 2. 'bzip2 --version > xx' doesn't finish.
>
>I can reproduce that but don't know why that happens, currently.

That seems to be a bzip2 feature/bug.  (It behaves the same on RedHat 7.1.)

--------------------8<--------------------
$ bzip2 --version
bzip2, a block-sorting file compressor.  Version 1.0.1, 23-June-2000.

    Copyright (C) 1996-2000 by Julian Seward.

    This program is free software; you can redistribute it and/or modify
    it under the terms set out in the LICENSE file, which is included
    in the bzip2-1.0 source distribution.

    This program is distributed in the hope that it will be useful,
    but WITHOUT ANY WARRANTY; without even the implied warranty of
    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
    LICENSE file for more details.

bzip2: I won't write compressed data to a terminal.
bzip2: For help, type: `bzip2 --help'.
-------------------->8--------------------

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

-- 
     I always wondered about the meaning of life.   So I looked it
     up in the dictionary under "L" and there it was - the meaning
     of life.  It was not what I expected.                  - Dogbert 


--
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 -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019