[Top][All Lists]

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

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

From: Antonio Diaz Diaz
Subject: Re: gzip: add "--keep" option to keep original files unchanged
Date: Sat, 09 Feb 2013 23:04:56 +0100
User-agent: Mozilla/5.0 (X11; U; Linux i586; en-US; rv:1.7.11) Gecko/20050905

Paul Eggert wrote:
This path just adds the "--keep" option to keep original files unchanged.

Could you please explain why that option would be helpful?
It's not clear, from the patch.

It allows, for example, format conversion preserving file date without using an additional "touch":

$ lzip -kd autoconf-archive-2013.02.02.tar.lz
$ gzip autoconf-archive-2013.02.02.tar
2013-02-05 17:56 autoconf-archive-2013.02.02.tar.gz
2013-02-05 17:56 autoconf-archive-2013.02.02.tar.lz

$ gzip -cd autoconf-archive-2013.02.02.tar.gz > autoconf-archive-2013.02.02.tar
$ lzip autoconf-archive-2013.02.02.tar
2013-02-05 17:56 autoconf-archive-2013.02.02.tar.gz
2013-02-09 23:00 autoconf-archive-2013.02.02.tar.lz


reply via email to

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