aboutsummaryrefslogtreecommitdiff
path: root/usr.bin/man
diff options
context:
space:
mode:
authorMohamed Akram <mohd.akram@outlook.com>2023-07-03 15:20:51 +0000
committerMark Johnston <markj@FreeBSD.org>2023-07-04 19:42:55 +0000
commitb35ea9bac974a5650dcc234c06b3dc41d127f1d7 (patch)
tree4264893cdba3dfc3790c6c6e76c1c3fcb3e9a848 /usr.bin/man
parent150d8ca9f3baa0c0b049ce2e6ba4a88dc5d8e341 (diff)
downloadsrc-b35ea9bac974a5650dcc234c06b3dc41d127f1d7.tar.gz
src-b35ea9bac974a5650dcc234c06b3dc41d127f1d7.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
Diffstat (limited to 'usr.bin/man')
-rwxr-xr-xusr.bin/man/man.sh2
1 files changed, 1 insertions, 1 deletions
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' ;;