delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2016/04/19/05:49:42

X-Recipient: archive-cygwin AT delorie DOT com
DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:subject
:mime-version:content-type:content-transfer-encoding; q=dns; s=
default; b=WP3LvSKBMcevVegIgHd/TgGLAzkS7mOho0mBFo1/WSrdE9x4Q9YPI
dzy62yezCYREnddFqooSb00G8xU0asYcXRmHv8gImN1JwbD1rEmb324rxP2DzwuM
Y1csOgXE5uzQoHD/35+M6jEMNyv2b/0MnLuD8cyIGoRvX1i/3s8gRo=
DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id
:list-unsubscribe:list-subscribe:list-archive:list-post
:list-help:sender:date:from:reply-to:to:message-id:subject
:mime-version:content-type:content-transfer-encoding; s=default;
bh=ObvGEDyP3+MxMlZHIiwqDGbag/k=; b=jRBJfnDwo+T/umZQhoJb4jG6KyCg
dI1M36S0cKHSIFxocsYGyHP0NaB657VzkMabQp3KZ83ljY+j8+podTDjmMwaC3AK
90ZemWRaqG3/hr0ZYRnMoKlStQkr8m4g2PiKLsno4AuN/OViwUX4x4q+30lVP7tp
1j5DoVKtxPoupKk=
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Authentication-Results: sourceware.org; auth=none
X-Virus-Found: No
X-Spam-SWARE-Status: =?ISO-8859-1?Q?No, score=1.9 required=5.0 tests=BAYES_40,KAM_LAZY_DOMAIN_SECURITY,MISSING_MIMEOLE,RCVD_IN_DNSWL_NONE,RP_MATCHES_RCVD autolearn=no version=3.3.2 spammy==ef=bb=bf, 0297, HImportance:normal?=
X-HELO: mailout12.t-online.de
Date: Tue, 19 Apr 2016 11:49:11 +0200 (MEST)
From: Christian Franke <Christian DOT Franke AT t-online DOT de>
Reply-To: Christian Franke <Christian DOT Franke AT t-online DOT de>
To: "cygwin AT cygwin DOT com" <cygwin AT cygwin DOT com>
Message-ID: <1461059351776.571881.3e60150cb042ecb2c8733407f23d3f30c0d10aa5@spica.telekom.de>
Subject: gzip-1.7-1 regression: cannot redirect output of gzip -l
MIME-Version: 1.0
X-IsSubscribed: yes
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id u3J9nbQc000452

gzip-1.7-1 reports a write error if result of -l is redirected:

$ uname -srvm
CYGWIN_NT-6.1-WOW 2.5.0(0.297/5/3) 2016-04-11 09:55 i686

$ cygcheck -f /bin/gzip
gzip-1.7-1

$ echo text | gzip > text.gz

$ gzip -l text.gz
         compressed        uncompressed  ratio uncompressed_name
                 25                   5 -40.0% text

$ gzip -l text.gz | cat
gzip: write error: Bad file descriptor

$ gzip -l text.gz > out
gzip: write error: Bad file descriptor

This breaks (at least) the zforce script.

gzip -c is not affected.

Christian


--
Problem reports:       http://cygwin.com/problems.html
FAQ:                   http://cygwin.com/faq/
Documentation:         http://cygwin.com/docs.html
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple


- Raw text -


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