Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F135798211
D32063.id95526.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
870 B
Referenced Files
None
Subscribers
None
D32063.id95526.diff
View Options
Index: usr.bin/man/man.sh
===================================================================
--- usr.bin/man/man.sh
+++ 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
Details
Attached
Mime Type
text/plain
Expires
Thu, Nov 13, 11:54 PM (7 h, 31 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
25269797
Default Alt Text
D32063.id95526.diff (870 B)
Attached To
Mode
D32063: man: reset OPTIND after parsing args
Attached
Detach File
Event Timeline
Log In to Comment