git: b35ea9bac974 - main - man(1): use gzcat for .gz files
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 04 Jul 2023 19:43:08 UTC
The branch main has been updated by markj:
URL: https://cgit.FreeBSD.org/src/commit/?id=b35ea9bac974a5650dcc234c06b3dc41d127f1d7
commit b35ea9bac974a5650dcc234c06b3dc41d127f1d7
Author: Mohamed Akram <mohd.akram@outlook.com>
AuthorDate: 2023-07-03 15:20:51 +0000
Commit: Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-07-04 19:42:55 +0000
man(1): use gzcat for .gz files
POSIX zcat appends the .Z suffix to file arguments causing the command to fail
with .gz files.
Signed-off-by: Mohamed Akram <mohd.akram@outlook.com>
Reviewed by: markj
MFC after: 2 weeks
Pull Request: https://github.com/freebsd/freebsd-src/pull/789
---
usr.bin/man/man.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index 2b20c4394733..4fd6f886e87f 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -910,7 +910,7 @@ setup_cattool() {
case "$1" in
*.bz) cattool='/usr/bin/bzcat' ;;
*.bz2) cattool='/usr/bin/bzcat' ;;
- *.gz) cattool='/usr/bin/zcat' ;;
+ *.gz) cattool='/usr/bin/gzcat' ;;
*.lzma) cattool='/usr/bin/lzcat' ;;
*.xz) cattool='/usr/bin/xzcat' ;;
*.zst) cattool='/usr/bin/zstdcat' ;;