[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: maint.mk v. gzip 1.2.4
From: |
Micah Cowan |
Subject: |
Re: maint.mk v. gzip 1.2.4 |
Date: |
Mon, 22 Oct 2007 10:41:13 -0700 |
User-agent: |
Thunderbird 1.5.0.13 (X11/20070824) |
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA256
Simon Josefsson wrote:
>> Sadly, old versions of gzip send the help/usage report to stderr, not
>> stdout, so ">/dev/null" alone does not discard it. (And grep wouldn't
>> see an "rsyncable", even if it were there.) Folding stderr into stdout
>> looks harmless to me (not quite a proof of correctness, I realize), and
>> seems to solve the spewage problem:
>>
>> gzip_rsyncable := \
>> $(shell gzip --help 2>&1 |grep rsyncable >/dev/null && echo
>> --rsyncable)
>>
>>
>> For the record, that's on Tru64 V5.1B-4 (Patch Kit 6), but I'd expect
>> that anyone with a sufficiently obsolete gzip would see it, too.
>
> Fixed in gnulib's maint.mk, thanks!
Thanks. Did you opt for the 2>/dev/null version because it is known that
no version of gzip old enough to emit --help's output to stderr supports
rsyncable? Otherwise, I'd agree with Steven that the 2>&1 version would
be a bit better.
- --
Micah J. Cowan
Programmer, musician, typesetting enthusiast, gamer...
http://micah.cowan.name/
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org
iD8DBQFHHOC47M8hyUobTrERCF3iAJ0VInKJWmAPGMyNf4zBOY29gNwIFQCdFdHQ
KShDWA3NrBcVFg7cZnYlQpc=
=SAaC
-----END PGP SIGNATURE-----
- Re: maint.mk v. gzip 1.2.4, (continued)
- Re: maint.mk v. gzip 1.2.4, Jim Meyering, 2007/10/22
- Re: maint.mk v. gzip 1.2.4, Simon Josefsson, 2007/10/22
- Sync maintainer-makefile files (was: Re: maint.mk v. gzip 1.2.4), Simon Josefsson, 2007/10/22
- Re: Sync maintainer-makefile files, Micah Cowan, 2007/10/22
- Re: Sync maintainer-makefile files, Simon Josefsson, 2007/10/22
- Re: Sync maintainer-makefile files, Micah Cowan, 2007/10/22
- Re: Sync maintainer-makefile files, Simon Josefsson, 2007/10/23
- Re: Sync maintainer-makefile files, Jim Meyering, 2007/10/23
- Re: Sync maintainer-makefile files, Simon Josefsson, 2007/10/25
- Re: Sync maintainer-makefile files, Jim Meyering, 2007/10/25
Re: maint.mk v. gzip 1.2.4,
Micah Cowan <=
Re: maint.mk v. gzip 1.2.4, Steven M. Schweda, 2007/10/20