Page MenuHomeFreeBSD

D32063.diff
No OneTemporary

D32063.diff

diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -243,6 +243,7 @@
manpath_parse_args() {
local cmd_arg
+ OPTIND=1
while getopts 'Ldq' cmd_arg; do
case "${cmd_arg}" in
L) Lflag=Lflag ;;
@@ -426,6 +427,7 @@
if [ -n "$MANROFFSEQ" ]; then
set -- -$MANROFFSEQ
+ OPTIND=1
while getopts 'egprtv' preproc_arg; do
case "${preproc_arg}" in
e) pipeline="$pipeline | $EQN" ;;
@@ -545,6 +547,7 @@
man_parse_args() {
local IFS cmd_arg
+ OPTIND=1
while getopts 'M:P:S:adfhkm:op:tw' cmd_arg; do
case "${cmd_arg}" in
M) MANPATH=$OPTARG ;;
@@ -933,6 +936,7 @@
# Parse commandline args for whatis and apropos.
whatis_parse_args() {
local cmd_arg
+ OPTIND=1
while getopts 'd' cmd_arg; do
case "${cmd_arg}" in
d) debug=$(( $debug + 1 )) ;;

File Metadata

Mime Type
text/plain
Expires
Wed, Jul 8, 12:54 AM (3 h, 47 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
34820461
Default Alt Text
D32063.diff (834 B)

Event Timeline