=================================================================== RCS file: /cvsrepo/anoncvs/cvs/src/usr.bin/compress/compress.1,v retrieving revision 1.23 retrieving revision 1.24 diff -u -r1.23 -r1.24 --- src/usr.bin/compress/compress.1 2003/08/01 09:38:00 1.23 +++ src/usr.bin/compress/compress.1 2003/08/02 17:45:15 1.24 @@ -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 @@ 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 @@ 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.