diff options
author | Mohamed Akram <mohd.akram@outlook.com> | 2023-07-03 15:20:51 +0000 |
---|---|---|
committer | Mark Johnston <markj@FreeBSD.org> | 2023-07-18 13:36:06 +0000 |
commit | 97092573d5d41c665034aaa93ae6779ff04c2638 (patch) | |
tree | 818bfe94cef746f29488b620045ff9a940a15cf2 | |
parent | c9d956e36438460fc912cde33576db810c7122bd (diff) | |
download | src-97092573d5d41c665034aaa93ae6779ff04c2638.tar.gz src-97092573d5d41c665034aaa93ae6779ff04c2638.zip |
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)
-rwxr-xr-x | usr.bin/man/man.sh | 2 |
1 files changed, 1 insertions, 1 deletions
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' ;; |