From nobody Fri Nov 01 18:36:02 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 4Xg8h25ZfXz5cG64 for ; Fri, 01 Nov 2024 18:36:02 +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 4Xg8h24FQnz4L97 for ; Fri, 1 Nov 2024 18:36:02 +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=1730486162; 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: in-reply-to:in-reply-to:references:references; bh=4QDuIUBirTiGzKyh9B3nNNGIRravQRlBtOQLrtwJ4jQ=; b=DdggAeCcmepqlY8c5sqgYPIlWTqnekEHG9loS2aTuJMtUXlbE8vJLxm2GA++0bV2112x2f ijRbe/3xSoGMhVDQcYuiGjez6ejfESj5BzE16Bstzu+3CY69zypB4YEv5Ar1f01Om6yWgN ZalkaVUzxXWlBPmVq9qfKpOpP1q5Pl4GQ6fRre/xT37pbBZ4Lg4lKcIUNXv+FilGdJrzae NxRvYV238A32poEUDrLv8/8OdNDEG36ui1CNtl5b88SDtzGI2jLilV113J4o5jyE+/RdoZ N7RtgtdDq1E5up30ElutgoxssWlcJqWiq66yo5KFSz4AWZlI3+RYgFc9DprXqg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1730486162; a=rsa-sha256; cv=none; b=kTRsOAuXRmFxbwAUbpEEWSJqh130Z68mbd3rcLglgtNZ3YC0zck8zNuMhNt/xuOzmxBfiw 5zWJ1Uxu5kt/TWjnhBEj5dOWmPNIShRRx4b7IHBsyUc7NEgl+6t+5JXHoto9Z9CZcbufyH 4+7Lg9jN6U/JDkrMWzVE0b4A9WmavhjjtJiKBA6/I7qmPHsXQb/qbZAsAQ5hYM2OBP942n +gJySwULW8oQ+UQLHsMMGXgNUayekzgU/0+6fZHMlOZn/BqNamnAXzASzUdrpLanr91BfT V/nE7k1UA/xdaDDd1DjukhVIYdNEnj4E+rJCyHe0b5kFBCcjZ9WgqTbx+fbZrw== 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 4Xg8h23l0yzWNk for ; Fri, 1 Nov 2024 18:36:02 +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 4A1Ia2R7042624 for ; Fri, 1 Nov 2024 18:36:02 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 4A1Ia25x042623 for bugs@FreeBSD.org; Fri, 1 Nov 2024 18:36:02 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: Fri, 01 Nov 2024 18:36:02 +0000 X-Bugzilla-Reason: AssignedTo X-Bugzilla-Type: changed 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: wosch@FreeBSD.org X-Bugzilla-Status: Open X-Bugzilla-Resolution: X-Bugzilla-Priority: --- X-Bugzilla-Assigned-To: bugs@FreeBSD.org X-Bugzilla-Flags: X-Bugzilla-Changed-Fields: bug_status Message-ID: In-Reply-To: References: 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 Wolfram Schneider changed: What |Removed |Added ---------------------------------------------------------------------------- Status|New |Open --- Comment #1 from Wolfram Schneider --- Looking at debian12 I see $PAGER will not be called by man(1) if stdout is = not a tty: PAGER=3D'vim -' man man | wc=20 626 4724 35027 # non-existing pager program PAGER=3D'vim222 -' man man | wc=20 626 4724 35027 On FreeBSD 15-current: PAGER=3D'vim -' man man | wc=20=20=20 Vim: Warning: Output is not to a terminal PAGER=3D'vim22 -' man man | wc=20=20=20 eval: vim22: not found 0 0 0 We could re-set $MANPAGER in the function setup_pager() to /bin/cat if test= -t 1 returns false:=20 # stdout is not a TTY, skip PAGER if [ ! -t 1 ]; then MANPAGER=3D"cat" fi --=20 You are receiving this mail because: You are the assignee for the bug.=