shell scripts should use getopts instead of getopt
authornaddy <naddy@openbsd.org>
Tue, 4 May 2021 21:03:30 +0000 (21:03 +0000)
committernaddy <naddy@openbsd.org>
Tue, 4 May 2021 21:03:30 +0000 (21:03 +0000)
commitffc9f6ff367b492844cecb3642bc67758080529f
tree725274802e808b8088896be534a67c7589b9acac
parente85b7206f29c017d2100ff874c3802a292e1cbf1
shell scripts should use getopts instead of getopt

Add a prominent deprecation notice to getopt.1.
Add examples of the getopts idiom to sh.1 and ksh.1.

Requested by and ok espie@, ok jmc@
bin/ksh/ksh.1
bin/ksh/sh.1
usr.bin/getopt/getopt.1