Hi, Stefan Olsson wrote on Wed, Sep 17, 2014 at 10:32:19AM -0400: > From: kayasa...@gmail.com:
>> Just a quick observation, not sure if by design or other but ulimit >> doesn't seem to have a man page? > -It is a ksh builtin. > man ksh > > -It would be nice to have it show up when doing apropos though... It does, it just isn't in the .Nm (name) and .Nd (one-line description) macros that are searched by default, it's in .Ic (internal command) macros, so you can find it by either searching across all keys with any= or by specifically searching for internal commands: $ apropos any=ulimit ksh, rksh(1) - public domain Korn shell sh(1) - public domain Bourne shell getrlimit, setrlimit(2) - control maximum system resource consumption $ apropos Ic=ulimit ksh, rksh(1) - public domain Korn shell sh(1) - public domain Bourne shell getrlimit, setrlimit(2) - control maximum system resource consumption That works on OpenBSD 5.6 or -current if you have set MAKEWHATISARGS=' ' in weekly.local(8) or have run sudo makewhatis manually. This may also be useful: $ apropos -O Ic Nm=ksh ksh, rksh(1) - until # privileged # list # + # - # / # noexec # noclobber # G # nounset # T # +(foo|bar) # a # c # d # f # i # j # p # vi-tabcomplete # t # < # login # !(*) # ++ # () # builtin # suspend # F # [[ foobar = f*r ]] # elif # \" # exec 3>&p; exec 3>&- # select i; { echo $i; } # $! # %- # $* # > # _ # %+ # eval `false` # << # $_ # $@ # +x # unset # <& # cmd < foo > foo # complete # readonly # y # mknod # ~ # print -u # [ # ] # errexit # continue # +-A # down-history # $! # false # markdirs # posix # monitor # break # ulimit # function # $$ # allexport # !(foo|bar) # : # alias # notify # set - # . # times # set -o monitor # autoload # yank # stdin # jobs # command # {} # $(cat foo) # emacs-usemeta # sh # select # read # ignoreeof # emacs # {foo} # hash # echo "`echo \"hi\"`" # cd # FOO=bar # vi-esccomplete # exec # if # print -p # in # alias -d # verbose # +A # noglob # case $foo { *) echo bar; } # nolog # bg # umask # typeset -ft # fc # do # wait # trackall # getconf CS_PATH # vi-show8 # set -- `false`; echo $? # else # done # time # $(...) # whence # echo $((2+3*4)) # fc -e ${VISUAL:-${EDITOR:-vi}} # *(foo|bar) # return # restricted # +-o # stuff # shift # ^F # +-abCefhkmnpsuvXx # @(foo|bar) # case # I#^J # viraw # physical # for i; { echo $i; } # alias r='fc -e -' # set -o vi-tabcomplete # !(?)* # pwd # echo # `..` # set +o # read -p # typeset +f # set # typeset -f # set -m # set -o # set -h # esac # nohup # $(< foo) # test # up-history # set -A # && # alias -t # [ ... ] # >&p # exit # || # read nfoo?'number of foos: ' # let # kill # <&p # typeset -fx # while # typeset -fu # ! # export # vi # kill -l # ?(foo|bar) # unalias # typeset # true # interactive # eot # csh-history # keyword # eval # alias -d fac=/usr/local/facilities; cd ~fac/bin # $? # bind # for # gmacs # . # getopts # xtrace # 10l # search-history # braceexpand # trap # delete-char-forward # print # set -o posix # bgnice # +-lprtUux # fg Some noise in there, but also most built-in commands. Oh, and if i ever manage to do the switch of man(1) from the BSD to the mandoc implementation, this will work too - it already works on -current if you do sudo mv /usr/bin/man /usr/bin/oman sudo ln -s /usr/bin/mandoc /usr/bin/man at your own risk: $ man -ak Ic=ulimit That directly brings up the pager with the ksh(1), sh(1), and getrlimit(2) manuals, so you can readily use the more(1) or less(1) / search method across all three. Yours, Ingo