Example:
man -awK "typeset"
This was confirmed by piping to grep
:
search=typeset
man -awK -- "$search" | xargs -I {} sh -c "echo '{}'
man --no-hyphenation --no-justification -- {} | grep -iF -- '$search'"
Result:
/usr/share/man/man1/lcf.1.gz /usr/share/man/man1/memusagestat.1.gz /usr/share/man/man1/mtrace.1.gz /usr/share/man/man1/nm-applet.1.gz /usr/share/man/man1/nm-connection-editor.1.gz /usr/share/man/man1/nroff.1.gz GROFF_TYPESETTER environment variable nor the -T command-line option GROFF_TYPESETTER and GROFF_TYPESETTER is unset. /usr/share/man/man1/tfmtodit.1.gz To do a good job of math typesetting, groff requires font metric /usr/share/man/man1/ptx.1.gz -t, --typeset-mode - not implemented - /usr/share/man/man1/chrt.1.gz /usr/share/man/man1/taskset.1.gz /usr/share/man/man1/chem.1.gz for Typesetting Chemical Structure Diagrams [CSTR #122]. cm.bell-labs.com/netlib/typesetting/chem.gz⟩. Its README file was used Typesetting Chemical Structure Diagrams [CSTR #122] ⟨http:// /usr/share/man/man1/chacl.1.gz
Note that the first five results don't actually contain "typeset" at all. Other search terms behave similarly.
I'm running Ubuntu 20.04.4 LTS (5.15.0-43-generic) with man 2.9.1. This seems to also be an issue on macOS 12.5 with man 1.6g, which has me wondering if I'm doing something wrong?