From nobody Tue Sep 5 16:42:03 2023 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 4RgB9m2T06z4rtVG for ; Tue, 5 Sep 2023 16:42:04 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4RgB9l6Zhcz4rJg for ; Tue, 5 Sep 2023 16:42:03 +0000 (UTC) (envelope-from bugzilla-noreply@freebsd.org) ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1693932123; a=rsa-sha256; cv=none; b=TdzhCOe//OkPqz9AW18fUllR0A/V/qncCdOoLNbpso72sHjt6glVdJe8vFWdbKqU/WPR3E b5iapDOiPPfOal4IcgGH1tYIDLNSyvAdz29ZPzQVsRX7X5pexVV0tvDeWjoBTXZMkDZ0LE UqTj1ZLEX0Y0YROEULSg1xvOZcTZJtnHWDDd/l3Y7onDbRhKInjksQGwRsrDk2ApzHUvoz 08QZ8KC/RtHHUA435U5IEXO7FICtB/LXaqgzXeAf4N38586fYdKs6EGlLMeDZXPq9XwEP2 /T9M/a1xbjAIu8SJ3iXKVpyvFSeTMHuxi/ml1KgCEXrGLuGcvg8GPjZ0Ovo+Zw== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1693932123; 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=kvAyaPOR6d2290+XPk6xIR6eNol2pf5vt2Mot0+wB4A=; b=B+2gSPcq/5apJTA5RaQe/n/4eyQW19ZpcZQRAnfpDrL0eKU80N5k5tJQofioV2ww/Wsl/V KRPktLOcKee2FJCX1iEyGomkRLkr4uqZo+WFVVWgdKvMnJastQo//K0Y4P3GIwb8VgIrho /MT/uMVDMwm1x8qgKfEdLdh3uednUPjiPkIbcW9lPv9lF48CuVMTaJ9WWBxJdY0eXPyKZM 55O2lyvIt4Ao8/mxeKOIY4GTApnQ7itrqQ3c98dvaNVAkU7Mb+BHuH/ilZzwIIYLk2e62+ WqWo793S4R9WMk4DG6HegoXdBwsQXcGU7GUm17PpjNvuQVstN7kZNwZDZ3hCHA== 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 4RgB9l5V33zgd4 for ; Tue, 5 Sep 2023 16:42:03 +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 385Gg38X042181 for ; Tue, 5 Sep 2023 16:42:03 GMT (envelope-from bugzilla-noreply@freebsd.org) Received: (from www@localhost) by kenobi.freebsd.org (8.15.2/8.15.2/Submit) id 385Gg34I042180 for bugs@FreeBSD.org; Tue, 5 Sep 2023 16:42:03 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 273582] man: check if run in a pipe before invoking MANPAGER Date: Tue, 05 Sep 2023 16:42:03 +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 Only Me X-Bugzilla-Who: freebsd@igalic.co 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=3D273582 Bug ID: 273582 Summary: man: check if run in a pipe before invoking MANPAGER Product: Base System Version: CURRENT Hardware: Any OS: Any Status: New Severity: Affects Only Me Priority: --- Component: bin Assignee: bugs@FreeBSD.org Reporter: freebsd@igalic.co setting MANPAGER to something esoteric like `nvim +Man!` means that programs such as emacs which allow preview of man pages, will hang forever, waiting = for nvim to produce output on stdin. man should check if it's being invoked in a pipe (using tty(1)), and only i= f it isn't, invoke MANPAGER. --=20 You are receiving this mail because: You are the assignee for the bug.=