Changeset View
Changeset View
Standalone View
Standalone View
usr.bin/man/man.sh
Show First 20 Lines • Show All 526 Lines • ▼ Show 20 Lines | for path in $MANPATH; do | ||||
fi | fi | ||||
fi | fi | ||||
fi | fi | ||||
done | done | ||||
done | done | ||||
done | done | ||||
unset IFS | unset IFS | ||||
# Nothing? Well, we are done then. | # Nothing? Try looking for loader/sysctl tunable. | ||||
if [ -z "$found_page" ]; then | |||||
path=$(apropos -w _tun="$1" 2>/dev/null) | |||||
if [ $? = 0 ]; then | |||||
found_page=yes | |||||
man_find_and_display $path | |||||
fi | |||||
fi | |||||
# Still nothing? Well, we are done then. | |||||
if [ -z "$found_page" ]; then | if [ -z "$found_page" ]; then | ||||
echo "No manual entry for $1" >&2 | echo "No manual entry for $1" >&2 | ||||
ret=1 | ret=1 | ||||
return | return | ||||
fi | fi | ||||
} | } | ||||
# Usage: man_parse_args "$@" | # Usage: man_parse_args "$@" | ||||
▲ Show 20 Lines • Show All 489 Lines • Show Last 20 Lines |