git: ec4c6d7ebfc9 - stable/13 - fix using man(1) with multiple pages

From: Wolfram Schneider <wosch_at_FreeBSD.org>
Date: Mon, 12 Feb 2024 15:49:37 UTC
The branch stable/13 has been updated by wosch:

URL: https://cgit.FreeBSD.org/src/commit/?id=ec4c6d7ebfc91a2e6a06949451aaaad4bf582041

commit ec4c6d7ebfc91a2e6a06949451aaaad4bf582041
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2024-02-12 15:44:40 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2024-02-12 15:44:40 +0000

    fix using man(1) with multiple pages
    
    PR: 275978
    Reported by: Mohamed Akram
    Fixes: 789480702e490818244af11279868ba4f3dabe6b
    MFC after: 1 week
    
    (cherry picked from commit 1e82d882ed3372bcaf82451bfb865483a409ab1f)
---
 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 6ddeb62a3764..ecc73733b560 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -999,7 +999,7 @@ do_man() {
                 exit 1
         fi
 
-	for page in "$pages"; do
+	for page in "$@"; do
 		decho "Searching for \"$page\""
 		man_find_and_display "$page"
 	done