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
This commit is contained in:
Mohamed Akram
2023-07-03 19:20:51 +04:00
committed by Mark Johnston
parent 150d8ca9f3
commit b35ea9bac9
+1 -1
View File
@@ -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' ;;