Print this page
12284 errors in compress(1) and pack(1) man pages

*** 42,56 **** .\" .\" Copyright 1989 AT&T .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved .\" ! .TH PACK 1 "Mar 13, 2008" .SH NAME pack, pcat, unpack \- compress and expand files .SH SYNOPSIS - .LP .nf \fBpack\fR [\fB-f/\fR] [\fB-\fR] \fIfile\fR... .fi .LP --- 42,55 ---- .\" .\" Copyright 1989 AT&T .\" Portions Copyright (c) 1992, X/Open Company Limited All Rights Reserved .\" Copyright (c) 1996, Sun Microsystems, Inc. All Rights Reserved .\" ! .TH PACK 1 "Feb 5, 2020" .SH NAME pack, pcat, unpack \- compress and expand files .SH SYNOPSIS .nf \fBpack\fR [\fB-f/\fR] [\fB-\fR] \fIfile\fR... .fi .LP
*** 63,74 **** \fBunpack\fR [\fB-/\fR] \fIfile\fR... .fi .SH DESCRIPTION .SS "pack" - .sp - .LP The \fBpack\fR command attempts to store the specified files in a compressed form. Wherever possible (and useful), each input file \fBfile\fR is replaced by a packed file \fBfile\fR\fB\&.z\fR with the same access modes, access and modified dates, and owner as those of \fBfile\fR. If \fBpack\fR is successful, \fBfile\fR is removed. --- 62,71 ----
*** 153,166 **** an I/O error occurred during processing. .RE .sp .LP The last segment of the file name must be short enough to allow space for the ! appended \fB\&.z\fRextension. Directories cannot be compressed. .SS "pcat" - .sp - .LP The \fBpcat\fR command does for packed files what \fBcat\fR(1) does for ordinary files, except that \fBpcat\fR cannot be used as a filter. The specified files are unpacked and written to the standard output. .sp .LP --- 150,161 ---- an I/O error occurred during processing. .RE .sp .LP The last segment of the file name must be short enough to allow space for the ! appended \fB\&.z\fR extension. Directories cannot be compressed. .SS "pcat" The \fBpcat\fR command does for packed files what \fBcat\fR(1) does for ordinary files, except that \fBpcat\fR cannot be used as a filter. The specified files are unpacked and written to the standard output. .sp .LP
*** 177,188 **** .ie t \(bu .el o the file does not appear to be the output of \fBpack\fR. .RE .SS "unpack" - .sp - .LP The \fBunpack\fR command expands files created by \fBpack\fR. For each \fBfile\fR specified in the command, a search is made for a file called \fBfile\fR\fB\&.z\fR (or just \fBfile\fR, if \fBfile\fR ends in \fB\&.z\fR). If this file appears to be a packed file, it is replaced by its expanded version. The new file has the \fB\&.z\fR suffix stripped from its name, and has the same --- 172,181 ----
*** 204,215 **** .ie t \(bu .el o the unpacked file cannot be created. .RE .SH OPTIONS - .sp - .LP The following options are supported by \fBpack\fR: .sp .ne 2 .na \fB\fB-f\fR\fR --- 197,206 ----
*** 235,246 **** message is written to \fBstderr\fR, and the final exit status is \fBnon-zero\fR. .RE .SH OPERANDS - .sp - .LP The following operands are supported: .sp .ne 2 .na \fB\fBfile\fR\fR --- 226,235 ----
*** 262,278 **** to be printed on the standard output. Additional occurrences of \fB\(mi\fR in place of \fBfile\fR causes the internal flag to be set and reset. .RE .SH USAGE - .sp - .LP See \fBlargefile\fR(5) for the description of the behavior of \fBpack\fR, \fBpcat\fR, and \fBunpack\fR when encountering files greater than or equal to 2 ! Gbyte ( 2^31 bytes). .SH EXAMPLES - .LP \fBExample 1 \fRViewing a Packed File .sp .LP To view a packed file named \fBfile.z\fR use: --- 251,264 ---- to be printed on the standard output. Additional occurrences of \fB\(mi\fR in place of \fBfile\fR causes the internal flag to be set and reset. .RE .SH USAGE See \fBlargefile\fR(5) for the description of the behavior of \fBpack\fR, \fBpcat\fR, and \fBunpack\fR when encountering files greater than or equal to 2 ! Gbyte (2^31 bytes). .SH EXAMPLES \fBExample 1 \fRViewing a Packed File .sp .LP To view a packed file named \fBfile.z\fR use:
*** 287,297 **** .sp .LP \fBexample%\fR \fBpcat\fR \fBfile\fR .LP ! \fBExample 2 \fRMaking and Unpacked Copy: .sp .LP To make an unpacked copy, say \fBnnn\fR, of a packed file named \fBfile.z\fR (without destroying \fBfile.z\fR) use the command: --- 273,283 ---- .sp .LP \fBexample%\fR \fBpcat\fR \fBfile\fR .LP ! \fBExample 2 \fRMaking an Unpacked Copy: .sp .LP To make an unpacked copy, say \fBnnn\fR, of a packed file named \fBfile.z\fR (without destroying \fBfile.z\fR) use the command:
*** 298,315 **** .sp .LP \fBexample%\fR \fBpcat\fR \fBfile\fR \fB>nnn\fR .SH ENVIRONMENT VARIABLES - .sp - .LP See \fBenviron\fR(5) for descriptions of the following environment variables that affect the execution of \fBpack\fR, \fBpcat\fR, and \fBunpack\fR: \fBLC_CTYPE\fR, \fBLC_MESSAGES\fR, and \fBNLSPATH\fR. .SH EXIT STATUS - .sp - .LP The following exit values are returned: .sp .ne 2 .na \fB\fB0\fR\fR --- 284,297 ----
*** 328,339 **** returned. If the number of failures exceeds \fB255\fR, then \fB255\fR is returned. .RE .SH ATTRIBUTES - .sp - .LP See \fBattributes\fR(5) for descriptions of the following attributes: .sp .sp .TS --- 310,319 ----
*** 344,352 **** _ CSI Enabled .TE .SH SEE ALSO - .sp - .LP \fBcat\fR(1), \fBcompress\fR(1), \fBzcat\fR(1), \fBfgetattr\fR(3C), \fBfsetattr\fR(3C), \fBattributes\fR(5), \fBenviron\fR(5), \fBlargefile\fR(5) --- 324,330 ----