# read a man page setopt localoptions extendedglob local manual="$1" col=col terminal=man magic line # /usr/bin/col on SunOS 4 doesn't support -x. if [[ -x /usr/5bin/col ]]; then col=/usr/5bin/col; fi # SunOS 5 has no `man' terminal. if [[ -d /usr/share/lib/nterm && ! -e /usr/share/lib/nterm/tab.$terminal ]]; then terminal=lp; fi # HP-UX has no `man' terminal. if [[ -d /usr/share/lib/term && ! -e /usr/share/lib/term/tab$terminal ]]; then terminal=lp; fi # IRIX has no `man' terminal. if [[ -d /usr/lib/nterm && ! -e /usr/lib/nterm/tab.$terminal ]]; then terminal=lp; fi # Unixware has no `man' terminal. if [[ -d /usr/ucblib/doctools/nterm && ! -e /usr/ucblib/doctools/nterm/tab.$terminal ]]; then terminal=lp; fi # Solaris has SGML manuals. if [[ -f /usr/lib/sgml/sgml2roff ]] && [[ "$(read -er < $manual)" = "