summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormillert <millert@openbsd.org>2003-08-02 17:45:15 +0000
committermillert <millert@openbsd.org>2003-08-02 17:45:15 +0000
commitc8d7f545c8474eda9d6d0f4628a8956f03ae7b0f (patch)
tree28755d01d8f535ff7c91e7dbc9fa05c641e7378c
parentdocument examine (diff)
downloadwireguard-openbsd-c8d7f545c8474eda9d6d0f4628a8956f03ae7b0f.tar.xz
wireguard-openbsd-c8d7f545c8474eda9d6d0f4628a8956f03ae7b0f.zip
Better description of how uncompressed file name is generated.
OK jmc@
-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.