summaryrefslogtreecommitdiff
path: root/usr.bin/compress/compress.1
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2003-08-02 17:45:16 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2003-08-02 17:45:16 +0000
commitffc99684c0709952d045000608c9d9b644baba91 (patch)
treebee82e542429bfc979ea791006c50db54fec41f4 /usr.bin/compress/compress.1
parentd4c729032b2be798f5b5d33266e61b933fa6f093 (diff)
Better description of how uncompressed file name is generated.
OK jmc@
Diffstat (limited to 'usr.bin/compress/compress.1')
-rw-r--r--usr.bin/compress/compress.138
1 files changed, 26 insertions, 12 deletions
diff --git a/usr.bin/compress/compress.1 b/usr.bin/compress/compress.1
index 518f62253d0..399e3439d42 100644
--- a/usr.bin/compress/compress.1
+++ b/usr.bin/compress/compress.1
@@ -1,4 +1,4 @@
-.\" $OpenBSD: compress.1,v 1.23 2003/08/01 09:38:00 jmc Exp $
+.\" $OpenBSD: compress.1,v 1.24 2003/08/02 17:45:15 millert Exp $
.\" $NetBSD: compress.1,v 1.5 1995/03/26 09:44:34 glass Exp $
.\"
.\" Copyright (c) 1986, 1990, 1993
@@ -111,11 +111,29 @@ The
and
.Nm gunzip
utilities restore compressed files to their original form, renaming the
-files by removing the
-.Dq .Z
-or
-.Dq .gz
-extension.
+files by removing the extension (or by using the stored name if the
+.Fl N
+flag is specified).
+When decompressing, the following extensions are recognized:
+.Dq .Z ,
+.Dq -Z ,
+.Dq _Z ,
+.Dq .gz ,
+.Dq -gz ,
+.Dq _gz ,
+.Dq .tgz ,
+.Dq -tgz ,
+.Dq _tgz ,
+.Dq .taz ,
+.Dq -taz ,
+and
+.Dq _taz .
+Entensions ending in
+.Dq tgz
+and
+.Dq taz
+are not removed when decompressing, instead they are converted to
+.Dq tar .
.Pp
The
.Nm zcat
@@ -205,12 +223,8 @@ When compressing, do not save the original file name and time stamp.
This information is saved by default when the deflate scheme is used.
When uncompressing, do not restore the original file name and time stamp.
By default, the uncompressed file inherits the time stamp of the
-compressed version and the uncompressed file name is generated by
-stripping the
-.Dq Z
-or
-.Dq gz
-extension from the compressed file name.
+compressed version and the uncompressed file name is generated from
+the name of the compressed file name as described above.
.It Fl N
When compressing, save the original file name and time stamp in the
compressed file.