git: 1e82d882ed33 - main - fix using man(1) with multiple pages
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Mon, 08 Jan 2024 16:07:32 UTC
The branch main has been updated by wosch:
URL: https://cgit.FreeBSD.org/src/commit/?id=1e82d882ed3372bcaf82451bfb865483a409ab1f
commit 1e82d882ed3372bcaf82451bfb865483a409ab1f
Author: Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2024-01-08 15:53:11 +0000
Commit: Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2024-01-08 16:05:50 +0000
fix using man(1) with multiple pages
PR: 275978
Reported by: Mohamed Akram
Fixes: 789480702e490818244af11279868ba4f3dabe6b
MFC after: 1 week
---
usr.bin/man/man.sh | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/usr.bin/man/man.sh b/usr.bin/man/man.sh
index 66af46a36243..7e2151295ba7 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -1040,7 +1040,7 @@ do_man() {
do_full_search "${REGEXP}"
fi
- for page in "$pages"; do
+ for page in "$@"; do
decho "Searching for \"$page\""
man_find_and_display "$page"
done