The branch main has been updated by markj:

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

commit b35ea9bac974a5650dcc234c06b3dc41d127f1d7
Author:     Mohamed Akram <[email protected]>
AuthorDate: 2023-07-03 15:20:51 +0000
Commit:     Mark Johnston <[email protected]>
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 <[email protected]>
    
    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' ;;

Reply via email to