summaryrefslogtreecommitdiff
path: root/gzip.1
diff options
context:
space:
mode:
authorRodrigo Campos <rodrigo@sdfg.com.ar>2013-03-31 22:53:31 -0300
committerJim Meyering <meyering@fb.com>2013-05-28 06:25:39 -0700
commit0192f02e26ac9fa0a27ed177263ee3ea73d5e95c (patch)
tree6866492c4b1b9b27e56bd61437a6f392de502605 /gzip.1
parent182e0b18713f759690432bec1f0cdd6720ee54b1 (diff)
downloadgzip-0192f02e26ac9fa0a27ed177263ee3ea73d5e95c.tar.gz
gzip: add "--keep" option to retain (don't delete) input files
gzip now accepts the --keep (-k) option, for consistency with tools like xz, lzip and bzip2. With this option, gzip no longer removes named input files when compressing and decompressing. * doc/gzip.texi: Document it. * gzip.1: Likewise. * gunzip.in: Likewise. * NEWS: Likewise. * gzip.c: Add support for "--keep".
Diffstat (limited to 'gzip.1')
-rw-r--r--gzip.19
1 files changed, 6 insertions, 3 deletions
diff --git a/gzip.1 b/gzip.1
index c97aeb1..71e097c 100644
--- a/gzip.1
+++ b/gzip.1
@@ -4,7 +4,7 @@ gzip, gunzip, zcat \- compress or expand files
.SH SYNOPSIS
.ll +8
.B gzip
-.RB [ " \-acdfhlLnNrtvV19 " ]
+.RB [ " \-acdfhklLnNrtvV19 " ]
.RB [ \-S\ suffix ]
[
.I "name \&..."
@@ -12,7 +12,7 @@ gzip, gunzip, zcat \- compress or expand files
.ll -8
.br
.B gunzip
-.RB [ " \-acfhlLnNrtvV " ]
+.RB [ " \-acfhklLnNrtvV " ]
.RB [ \-S\ suffix ]
[
.I "name \&..."
@@ -218,6 +218,9 @@ prompts to verify whether an existing file should be overwritten.
.B \-h --help
Display a help screen and quit.
.TP
+.B \-k --keep
+Keep (don't delete) input files during compression or decompression.
+.TP
.B \-l --list
For each compressed file, list the following fields:
@@ -392,7 +395,7 @@ Internet RFC 1951 (May 1996).
Exit status is normally 0;
if an error occurs, exit status is 1. If a warning occurs, exit status is 2.
.TP
-Usage: gzip [-cdfhlLnNrtvV19] [-S suffix] [file ...]
+Usage: gzip [-cdfhklLnNrtvV19] [-S suffix] [file ...]
Invalid options were specified on the command line.
.TP
\fIfile\fP\^: not in gzip format