From ffc99684c0709952d045000608c9d9b644baba91 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Sat, 2 Aug 2003 17:45:16 +0000 Subject: Better description of how uncompressed file name is generated. OK jmc@ --- usr.bin/compress/compress.1 | 38 ++++++++++++++++++++++++++------------ 1 file changed, 26 insertions(+), 12 deletions(-) (limited to 'usr.bin/compress/compress.1') 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. -- cgit v1.2.3