compress(1): warn about link handling

compress(1) handles links badly and does not provide link-handling options.
Document this behavior.

PR:     84271
Submitted by: garys@opusnet.com
Approved by: gbe@ (mentor)
Differential Revision:	https://reviews.freebsd.org/D28552
This commit is contained in:
Fernando Apesteguía 2021-02-09 10:11:22 +01:00
parent fa04db4762
commit fc1e79740e

View File

@ -32,7 +32,7 @@
.\" @(#)compress.1 8.2 (Berkeley) 4/18/94 .\" @(#)compress.1 8.2 (Berkeley) 4/18/94
.\" $FreeBSD$ .\" $FreeBSD$
.\" .\"
.Dd October 20, 2020 .Dd March 4, 2021
.Dt COMPRESS 1 .Dt COMPRESS 1
.Os .Os
.Sh NAME .Sh NAME
@ -177,6 +177,13 @@ Compression is generally much better than that achieved by Huffman
coding (as used in the historical command pack), or adaptive Huffman coding (as used in the historical command pack), or adaptive Huffman
coding (as used in the historical command compact), and takes less coding (as used in the historical command compact), and takes less
time to compute. time to compute.
.Pp
If
.Ar file
is a soft or hard link
.Nm
will replace it with a compressed copy of the file pointed to by the link.
The link's target file is left uncompressed.
.Sh EXIT STATUS .Sh EXIT STATUS
.Ex -std compress uncompress .Ex -std compress uncompress
.Pp .Pp
@ -248,6 +255,8 @@ The
command appeared in command appeared in
.Bx 4.3 . .Bx 4.3 .
.Sh BUGS .Sh BUGS
The program does not handle links well and has no link-handling options.
.Pp
Some of these might be considered otherwise-undocumented features. Some of these might be considered otherwise-undocumented features.
.Pp .Pp
.Nm compress : .Nm compress :