FreeBSD Bugzilla – Attachment 242612 Details for
Bug 271830
man: ignores MANSECT and -S
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
improved patch
patch-man.diff (text/plain), 1.11 KB, created by
Mohamed Akram
on 2023-06-05 10:10:47 UTC
(
hide
)
Description:
improved patch
Filename:
MIME Type:
Creator:
Mohamed Akram
Created:
2023-06-05 10:10:47 UTC
Size:
1.11 KB
patch
obsolete
>--- man.sh.orig 2023-06-05 14:05:37 >+++ man.sh 2023-06-05 14:07:23 >@@ -601,19 +601,6 @@ > do_apropos "$@" > exit > fi >- >- IFS=: >- for sect in $man_default_sections; do >- if [ "$sect" = "$1" ]; then >- decho "Detected manual section as first arg: $1" >- MANSECT="$1" >- shift >- break >- fi >- done >- unset IFS >- >- pages="$*" > } > > # Usage: man_setup >@@ -787,8 +774,8 @@ > trim "${line#MANCONFIG}" > config_local="$tstr" > ;; >- # Set variables in the form of FOO_BAR >- *_*[\ \ ]*) var="${line%%[\ \ ]*}" >+ # Set other variables >+ *[\ \ ]*) var="${line%%[\ \ ]*}" > trim "${line#$var}" > eval "$var=\"$tstr\"" > decho " Parsed $var" 3 >@@ -1009,11 +996,25 @@ > > do_man() { > man_parse_args "$@" >+ man_setup >+ >+ IFS=: >+ for sect in $MANSECT; do >+ if [ "$sect" = "$1" ]; then >+ decho "Detected manual section as first arg: $1" >+ MANSECT="$1" >+ shift >+ break >+ fi >+ done >+ unset IFS >+ >+ pages="$*" >+ > if [ -z "$pages" -a -z "${Kflag}" ]; then > echo 'What manual page do you want?' >&2 > exit 1 > fi >- man_setup > > if [ ! -z "${Kflag}" ]; then > # Short circuit because -K flag does a sufficiently
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 271830
:
242606
|
242612
|
242613
|
242614