bug-gzip
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: gzip: add "--keep" option to keep original files unchanged


From: Eric Blake
Subject: Re: gzip: add "--keep" option to keep original files unchanged
Date: Mon, 11 Feb 2013 06:49:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/20130110 Thunderbird/17.0.2

On 02/10/2013 05:59 PM, Paul Eggert wrote:
> On 02/10/2013 07:41 AM, Rodrigo Campos wrote:
>> Is this use case valid enough to accept
>> the patch ?
> 
> I'm sort of on the fence on this one.
> Comments from others welcome.

You can emulate --keep with 'gzip -c ... > file.gz'; but a quick look at
other compression utilities shows that it is a common option:

$ xz --help | grep keep
  -k, --keep          keep (don't delete) input files
$ bzip2 --help 2>&1 | grep keep
   -k --keep           keep (don't delete) input files

I'm in favor of the addition, but with the short option -k rather than -K.

-- 
Eric Blake   eblake redhat com    +1-919-301-3266
Libvirt virtualization library http://libvirt.org

Attachment: signature.asc
Description: OpenPGP digital signature


reply via email to

[Prev in Thread] Current Thread [Next in Thread]