git: 97092573d5d4 - stable/13 - man(1): use gzcat for .gz files

From: Mark Johnston <markj_at_FreeBSD.org>
Date: Tue, 18 Jul 2023 13:36:42 UTC
The branch stable/13 has been updated by markj:

URL: https://cgit.FreeBSD.org/src/commit/?id=97092573d5d41c665034aaa93ae6779ff04c2638

commit 97092573d5d41c665034aaa93ae6779ff04c2638
Author:     Mohamed Akram <mohd.akram@outlook.com>
AuthorDate: 2023-07-03 15:20:51 +0000
Commit:     Mark Johnston <markj@FreeBSD.org>
CommitDate: 2023-07-18 13:36:06 +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
    
    (cherry picked from commit b35ea9bac974a5650dcc234c06b3dc41d127f1d7)
---
 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 cf90b64f7991..60b329810734 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -894,7 +894,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' ;;