From fc1e79740e4a83013aa0050fc95a991ec9c78e27 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fernando=20Apestegu=C3=ADa?= Date: Tue, 9 Feb 2021 10:11:22 +0100 Subject: [PATCH] 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 --- usr.bin/compress/compress.1 | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/usr.bin/compress/compress.1 b/usr.bin/compress/compress.1 index de44653775ea..3aa18a963cdc 100644 --- a/usr.bin/compress/compress.1 +++ b/usr.bin/compress/compress.1 @@ -32,7 +32,7 @@ .\" @(#)compress.1 8.2 (Berkeley) 4/18/94 .\" $FreeBSD$ .\" -.Dd October 20, 2020 +.Dd March 4, 2021 .Dt COMPRESS 1 .Os .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 compact), and takes less 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 .Ex -std compress uncompress .Pp @@ -248,6 +255,8 @@ The command appeared in .Bx 4.3 . .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. .Pp .Nm compress :