Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 15 Jan 2024 07:37:38 GMT
From:      Wolfram Schneider <wosch@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org
Subject:   git: 79e7fef944f7 - stable/13 - fix using man(1) with multiple pages
Message-ID:  <202401150737.40F7bcX2015692@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch stable/13 has been updated by wosch:

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

commit 79e7fef944f7f4bb6865d2b5d0d38b7933ed6e79
Author:     Wolfram Schneider <wosch@FreeBSD.org>
AuthorDate: 2024-01-08 15:53:11 +0000
Commit:     Wolfram Schneider <wosch@FreeBSD.org>
CommitDate: 2024-01-15 07:36:59 +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 114ea9d7a0b2..9c90f0a6a9b5 100755
--- a/usr.bin/man/man.sh
+++ b/usr.bin/man/man.sh
@@ -973,7 +973,7 @@ do_man() {
 	fi
 	man_setup
 
-	for page in "$pages"; do
+	for page in "$@"; do
 		decho "Searching for \"$page\""
 		man_find_and_display "$page"
 	done



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202401150737.40F7bcX2015692>