From nobody Wed Oct 30 04:30:50 2024 X-Original-To: bugs@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 4XdZ1s3Wngz5bb11 for ; Wed, 30 Oct 2024 04:30:57 +0000 (UTC) (envelope-from bugzilla-noreply@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 "R10" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XdZ1s2T4Fz4l34 for ; Wed, 30 Oct 2024 04:30:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1730262657; 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=DeoE4FhjGGLgEk4/y+yy3wa5ZvcSNxVUftPO8XuSjro=; b=XCgum8FIk8RFOoF6oBVFU/13/9ZucMz9qBH8hoXBcF1VtXTQNGJ3brOO3UD9dk/CQWdN5F +OAZuzQ2W0cZDDMl2ItvORYDObRvkBuoFizHFaryNMj40YjHHSti6Sm0kp1O1MpiUsn1Oi RJUd+S9wRTbBrlos+Q/G5qmhqw9+se9602XFLLLqX4EqCN8iYED8KvEhVK+42DjUBbmjuM UzAjSajMe2g6vimFKldDkE6YrXBS/VS4oOv3R8Hy6639yp2Lppm272Un4/ISl6EAL2N5tr 2NHJYAikAxrf8AUzr/+FAekueXExgzy9SwwY2dmsI+lRB9M9p1AIeAeMV2Om+g== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730262657; a=rsa-sha256; cv=none; b=OmbqHbAQFjn5jMXT48BOJ1K7Qnnk5fGMnpyWZ6yhUY5L0Dwb21DxdkMsL8nj713ssrzf2d CGM0zHcRwaT2RaAs/LI0N/JtZJGbPraeub8Abfi9GsT0+xbRcpyVcPFWBSTJBlPZp6hh9W fL+Nn5gapZSmCxEFR1p1x1IE/e7X4KATvcv3UYAqwrs2+3nXQu6Y45UPzKOb1L+rSUgEfi u4q87SVmcVQhqNtyMa6/YQZq/0sSxL4P6zGByYYDBQk/mrc7bW1yCw8j0FPe10h9YW6Zjk o+LFwn2udkymrmCjmrGmXt4VEDk+j9swTpnpezOc+DDNnuCS9R4nGskANjQg7Q== Received: from kenobi.freebsd.org (kenobi.freebsd.org [IPv6:2610:1c1:1:606c::50:1d]) (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 4XdZ1s24w7zswm for ; Wed, 30 Oct 2024 04:30:57 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) Received: from kenobi.freebsd.org ([127.0.1.5]) by kenobi.freebsd.org (8.15.2/8.15.2) with ESMTP id 49U4Uv3Z016817 for ; Wed, 30 Oct 2024 04:30:57 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 49U4UvDg016816 for bugs@FreeBSD.org; Wed, 30 Oct 2024 04:30:57 GMT (envelope-from bugzilla-noreply@freebsd.org) X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 282414] man calls pager even when stdout is not a TTY Date: Wed, 30 Oct 2024 04:30:50 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: Base System X-Bugzilla-Component: bin X-Bugzilla-Version: CURRENT X-Bugzilla-Keywords: X-Bugzilla-Severity: Affects Some People X-Bugzilla-Who: aclopte@gmail.com X-Bugzilla-Status: New X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_id short_desc product version rep_platform op_sys bug_status bug_severity priority component assigned_to reporter Message-ID: Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Bugzilla-URL: https://bugs.freebsd.org/bugzilla/ Auto-Submitted: auto-generated List-Id: Bug reports List-Archive: https://lists.freebsd.org/archives/freebsd-bugs List-Help: List-Post: List-Subscribe: List-Unsubscribe: Sender: owner-freebsd-bugs@FreeBSD.org MIME-Version: 1.0 https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D282414 Bug ID: 282414 Summary: man calls pager even when stdout is not a TTY Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Some People Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: aclopte@gmail.com Vim or Neovim can act as man pagers PAGER=3D'vim -' man man PAGER=3D'nvim +Man!' man man however it breaks when stdout is not a TTY (e.g. when adding "| cat" to abo= ve command). This breakage surfaces in applications such as shells and editors that want to display the output of "man" (or "apropos" which uses the same script) somewhere that's not the entire terminal. This could be fixed by either: 1. having Neovim behave like cat when stdout is not a TTY 2. or making man not call $PAGER in this case (or I guess use "cat" to simp= lify implementation) I think option 2 makes sense because the pager is unnecessary here. Also man already behaves differently if stdout is not a TTY (it doesn't add ANSI esc= ape codes for bold fonts etc). This is also what [man-db](https://gitlab.com/man-db/man-db) does. Probably needs to be changed in https://cgit.freebsd.org/src/tree/usr.bin/man/man.sh Originally reported as https://github.com/fish-shell/fish-shell/issues/10820 --=20 You are receiving this mail because: You are the assignee for the bug.=