From nobody Mon Jan 15 07:37:47 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4TD3rr0HK7z56DGQ; Mon, 15 Jan 2024 07:37:48 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4TD3rq5Y1Wz4dCQ; Mon, 15 Jan 2024 07:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705304267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=891zYnCDSLuyronfB1ZiPNomI8PGwk6RPVI9BpYMsNs=; b=CsJSac/SCepWcwuImd+FHQbHo8k+5XBJ7aCIEdZ4ECI9JjxpnvKCMk21dpzwG5qR5gz9e7 eVfpprTPScq31wqI6jGowuq+C81XIcF2K+N5Eaixkmb6e3OJMArUoN8TifJZyJj26OcLA+ gEqguuTDz29+Iy8+3zQZqS4/GuOjRAqO10lfhmavfQgX1WSEOOlLC8cUIjEox2wJkKrzrA LLrByt+PtPbG/0X0WRMA7s6p39bI00EkXspxMv73WM/3Pt/iK3tHgEHcUJdHonGRpWpLos /F0cMd71SinjWUn/Ijgtg1Y13hRqP0Lh26aDI/sGtyJSFjPy4RUWImEs0HEkgg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1705304267; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=891zYnCDSLuyronfB1ZiPNomI8PGwk6RPVI9BpYMsNs=; b=DreBeSsZIrpxebHEvEd4xL/N43O8xbHBe2KQHv2SXjP2sBjXBzZylnh1URk0tFbfcG8XIf TB/MTkFoFwlY7IQHKjeV2GRQdag9NXbhTMu4yeOgLSi6hZVOSqZvaFl+SZcJLu7kZaLrd3 XLQp90XDEi79Pz79Y2/5jqXokwueOWR41PoFi+xaAvlxcJ7kYZ7Gi2RRqTnq+V+J9oUIlF gtoUotUshamtAW+fB1G+UzZMza7QbPAvNS4JdEQSlwfC+M652Qpes68dWg2RxNXdUE+VHR XEjw9h0lyDF1G9vTzyXfnA68XAfep/1w6qweafD+pxtCeBRDEYE2BNIfdke44A== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1705304267; a=rsa-sha256; cv=none; b=cLD++mcd3rN5kB6x66cC1tZXliM6WRkJ1XXVowU1bLvkiX/ESftke0B4DsGZKOzNiFrKPe mUMSQ4586TXgN2J0eGdFYpRdzrsdiVaRlN5Y3YlJWfxH7hFVLq8MhgNpTj2wzks3Xf/qgX DGxIMc5mfCmdre3+YRDwn1L95AsBbio0gQ2iNamHVRTGXUt5/qljONFLioT8pxTVI0YTWf OssIgidDL1I9WSW72IIqfWwdF74HiPxuVb/GCzPGRqjOHtab4VxHLsMO3Fppk5XoH32J9X VBAYKRfXI9fvCJp03EUnxGyozg+ARoc/e3hVhe4NPbelDgy88WSX8Wfp6+cWTw== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4TD3rq4brPzp1V; Mon, 15 Jan 2024 07:37:47 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.17.1/8.17.1) with ESMTP id 40F7blTT015846; Mon, 15 Jan 2024 07:37:47 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.17.1/8.17.1/Submit) id 40F7blk0015843; Mon, 15 Jan 2024 07:37:47 GMT (envelope-from git) Date: Mon, 15 Jan 2024 07:37:47 GMT Message-Id: <202401150737.40F7blk0015843@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-branches@FreeBSD.org From: Wolfram Schneider Subject: git: 1540a1b6fc05 - stable/14 - fix using man(1) with multiple pages List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: wosch X-Git-Repository: src X-Git-Refname: refs/heads/stable/14 X-Git-Reftype: branch X-Git-Commit: 1540a1b6fc05cfa192acec23c693bbe97e73d844 Auto-Submitted: auto-generated The branch stable/14 has been updated by wosch: URL: https://cgit.FreeBSD.org/src/commit/?id=1540a1b6fc05cfa192acec23c693bbe97e73d844 commit 1540a1b6fc05cfa192acec23c693bbe97e73d844 Author: Wolfram Schneider AuthorDate: 2024-01-08 15:53:11 +0000 Commit: Wolfram Schneider CommitDate: 2024-01-15 07:34:27 +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 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