diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2007-04-04 13:09:15 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2007-04-04 13:09:15 +0000 |
commit | fc6b47f02f36ff64ea421683a9de2780786f1572 (patch) | |
tree | 3596caa43598eecd7a6c6b3475aa521e73ba0615 /usr.bin | |
parent | ff81376aee53e9bbb6434eb44501b380a83d49d2 (diff) |
Clarify the behavior of the -N and -n flags.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/compress/compress.1 | 31 | ||||
-rw-r--r-- | usr.bin/compress/gzip.1 | 27 |
2 files changed, 35 insertions, 23 deletions
diff --git a/usr.bin/compress/compress.1 b/usr.bin/compress/compress.1 index 92125a81b6d..cbd7f30c2a5 100644 --- a/usr.bin/compress/compress.1 +++ b/usr.bin/compress/compress.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: compress.1,v 1.35 2007/01/24 10:53:43 jmc Exp $ +.\" $OpenBSD: compress.1,v 1.36 2007/04/04 13:09:14 millert Exp $ .\" $NetBSD: compress.1,v 1.5 1995/03/26 09:44:34 glass Exp $ .\" .\" Copyright (c) 1986, 1990, 1993 @@ -127,6 +127,19 @@ If either the input or output files are not regular files, the checks for reduction in size and file overwriting are not performed, the input file is not removed, and the attributes of the input file are not retained. .Pp +By default, when compressing using the deflate scheme +.Pf ( Fl g ) , +the original file name and time stamp is stored in the compressed file. +When uncompressing, this information is not used. +Instead, the uncompressed file inherits the time stamp of the +compressed version and the uncompressed file name is generated from +the name of the compressed file as described above. +These defaults may be overridden by the +.Fl N +and +.Fl n +flags, described below. +.Pp The options are as follows: .Bl -tag -width Ds .It Fl 1...9 @@ -214,22 +227,14 @@ option is specified, the time stamp stored in the compressed file is printed instead). .El .It Fl N -When compressing, save the original file name and time stamp in the -compressed file. -This information is saved by default when the deflate scheme -.Pf ( Fl g ) -is used. When uncompressing or listing, use the time stamp and file name stored in the compressed file, if any, for the uncompressed version. -.It Fl n -When compressing, do not save the original file name and time stamp. -This information is saved by default when the deflate scheme +This information is only available when the deflate scheme .Pf ( Fl g ) 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 from -the name of the compressed file name as described above. +.It Fl n +When compressing, do not store the original file name and time stamp +in the header of the compressed file. .It Fl O Use compress mode (the default). diff --git a/usr.bin/compress/gzip.1 b/usr.bin/compress/gzip.1 index 2aaf1a743da..a8b19e8ae74 100644 --- a/usr.bin/compress/gzip.1 +++ b/usr.bin/compress/gzip.1 @@ -1,4 +1,4 @@ -.\" $OpenBSD: gzip.1,v 1.2 2007/01/31 04:25:52 ray Exp $ +.\" $OpenBSD: gzip.1,v 1.3 2007/04/04 13:09:14 millert Exp $ .\" .\" Copyright (c) 1986, 1990, 1993 .\" The Regents of the University of California. All rights reserved. @@ -126,6 +126,18 @@ If either the input or output files are not regular files, the checks for reduction in size and file overwriting are not performed, the input file is not removed, and the attributes of the input file are not retained. .Pp +By default, when compressing, the original file name and time stamp +is stored in the compressed file. +When uncompressing, this information is not used. +Instead, the uncompressed file inherits the time stamp of the +compressed version and the uncompressed file name is generated from +the name of the compressed file as described above. +These defaults may be overridden by the +.Fl N +and +.Fl n +flags, described below. +.Pp The options are as follows: .Bl -tag -width Ds .It Fl 1...9 @@ -211,18 +223,13 @@ option is specified, the time stamp stored in the compressed file is printed instead). .El .It Fl N -When compressing, save the original file name and time stamp in the -compressed file. -This information is saved by default. When uncompressing or listing, use the time stamp and file name stored in the compressed file, if any, for the uncompressed version. .It Fl n -When compressing, do not save the original file name and time stamp. -This information is saved by default. -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 from -the name of the compressed file name as described above. +When compressing, do not store the original file name and time stamp +in the +.Nm +header. .It Fl O Use old compression method (force |