From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id 07118C433FE for ; Tue, 18 Oct 2022 20:05:54 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229995AbiJRUFx (ORCPT ); Tue, 18 Oct 2022 16:05:53 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59480 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229965AbiJRUFw (ORCPT ); Tue, 18 Oct 2022 16:05:52 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [139.178.84.217]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 551B014039 for ; Tue, 18 Oct 2022 13:05:51 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id D03D7616CF for ; Tue, 18 Oct 2022 20:05:50 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPS id 44C27C433B5 for ; Tue, 18 Oct 2022 20:05:50 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666123550; bh=NA33RFxatbJhLv3SsPfvRh4yXInHsFsdT0sMQL9L0Mw=; h=From:To:Subject:Date:In-Reply-To:References:From; b=SKxRm2tMezeW5oUmJ/6fiHQ1kQNkmJH5eMIUuuzGUV1BzMQWl3DEM9BM8doeRglSe I87NXAQ71snbJk3Bs+5bgJrBpLBiVPrAghLrKGx13wcCQfqBvIzEkh/uHUbP8P+KPd pSTUamX58GrhIHmaNAIKcBgvWJ1gx31P8LiHjE0uznHTEsFvmXH3adY9JxxQBE1PuI NZXz5dLf8dCg/fsBCwhZ3yxgRbyDsQJKXvpf3CLicUatwkMey08gEW2/nXxRBpIhI7 bM5Ev16P3yhIHvZRenD+zK7aNv8DmnzzuxSQCmVuzuxNsGjZ7fHJc5eR93GVrRgYHv B04hTdHHOBU/w== Received: by aws-us-west-2-korg-bugzilla-1.web.codeaurora.org (Postfix, from userid 48) id 2AFA5C433E9; Tue, 18 Oct 2022 20:05:50 +0000 (UTC) From: bugzilla-daemon@kernel.org To: linux-man@vger.kernel.org Subject: [Bug 216603] Environment variable MANLESS is described wrong in man(1) Date: Tue, 18 Oct 2022 20:05:49 +0000 X-Bugzilla-Reason: None X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: AssignedTo documentation_man-pages@kernel-bugs.osdl.org X-Bugzilla-Product: Documentation X-Bugzilla-Component: man-pages X-Bugzilla-Version: unspecified X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: alx.manpages@gmail.com X-Bugzilla-Status: NEW X-Bugzilla-Resolution: X-Bugzilla-Priority: P1 X-Bugzilla-Assigned-To: documentation_man-pages@kernel-bugs.osdl.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugzilla.kernel.org/ Auto-Submitted: auto-generated MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-man@vger.kernel.org https://bugzilla.kernel.org/show_bug.cgi?id=3D216603 --- Comment #1 from Alejandro Colomar (man-pages) (alx.manpages@gmail.com) = --- Hi Arttu, On 10/18/22 21:55, bugzilla-daemon@kernel.org wrote: > https://bugzilla.kernel.org/show_bug.cgi?id=3D216603 >=20 > Bug ID: 216603 > Summary: Environment variable MANLESS is described wrong in > man(1) > Product: Documentation > Version: unspecified > Hardware: All > OS: Linux > Status: NEW > Severity: normal > Priority: P1 > Component: man-pages > Assignee: documentation_man-pages@kernel-bugs.osdl.org > Reporter: karttu+bugzilla@gmail.com > Regression: No >=20 > In an example for setting MANLESS environment variable, man(1) claims: >=20 > For example, if you want to set the prompt string unconditionally > to "my prompt string", set $MANLESS to '-Psmy prompt string'. >=20 > However, this is not not correct as man uses the entire MANLESS variable > as a prompt for less. I'll demonstrate: >=20 > $ MANLESS=3D'-Ps(prompt)' man man > > $ cat /proc/$(pgrep -P $(pgrep -f "man man"))/environ | > tr '\0' '\n' | grep "^LESS=3D" >=20 > LESS=3D-ix8RmPm-Ps(prompt)$PM-Ps(prompt)$ >=20 > As seen, man(1) defines -Pm and -PM prompts using the MANLESS variable as= is. > The same applies to the command line option -r: >=20 > $ man -r'-Ps(prompt)' man > > $ cat /proc/$(pgrep -P $(pgrep -f "man .* man"))/environ | > tr '\0' '\n' | grep "^LESS=3D" >=20 > LESS=3D-ix8RmPm-Ps(prompt)$PM-Ps(prompt)$ >=20 > Option -r does not make the same claim, but it says: >=20 > By default man sets the -ix8 options. >=20 > Which also is a bit outdated as we can see it sets -ix8R. >=20 > So in summary, at least the '-Ps' part should be removed from the MANLESS > description example. Furthermore, option -r description could elaborate = on > how LESS variable is formed (-ix8RmPm$PM$). >=20 > Note: Dollar sign in less prompt definition is an end-of-string marker. >=20 The man(1) page is part of the man-db project, not the Linux man-pages.=20 Colin is the maintainer of man-db, so I CCd him. Their website is: However, I'm curious about the resolution, so if you report it again in=20 the man-db bug tracker (I guess that's their gitlab? don't remember),=20 please CC me. :) Cheers, Alex --=20 You may reply to this email to add a comment. You are receiving this mail because: You are watching the assignee of the bug.=