Article View: muc.lists.freebsd.bugs
Article #543[Bug 273582] man: check if run in a pipe before invoking MANPAGER
From: bugzilla-noreply
Date: Thu, 19 Nov 2026 10:36
Date: Thu, 19 Nov 2026 10:36
26 lines
2906 bytes
2906 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=273582
Kushagra Chauhan <zenzesama@gmail.com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |zenzesama@gmail.com
--- Comment #1 from Kushagra Chauhan <zenzesama@gmail.com> ---
I can reproduce this on current main. setup_pager() in man.sh never
checks whether stdout is a terminal, so a non-less MANPAGER (e.g.
"nvim +Man!") is run even when man's output is piped.
I've submitted a patch that uses cat when stdout is not a terminal,
unless -P is given explicitly:
https://reviews.freebsd.org/D61747
--
You are receiving this mail because:
You are the assignee for the bug.
--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Technical Details
Message-ID:
<bug-273582-227-sBjwtw1n8J@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailReferences:
<bug-273582-227@https.bugs.freebsd.org/bugzilla/>Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-lax.pugleaf.net!news.tcpreset.net!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!news.szaf.org!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 273582] man: check if run in a pipe before invoking MANPAGER Date: Thu, 19 Nov 2026 10:36:12 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-273582-227-sBjwtw1n8J@https.bugs.freebsd.org/bugzilla/> References: <bug-273582-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="17396"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795084572; 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=zY4yq99qYggI8xIcfNWus5lcBFmUebEk1I/CEJ5Owwc=; b=FWyhmqMnSSWll1jGYl/RQD/8E1EiqqUyQWHQbHPXOm33KBCu3f94nfZ2Rdpsy9L6aktuC8 tR8czWTr/Dvy+hQ4/8ySOa+0+uCfVoudVeo1ov7FT8+rh0UZGi+vsdG5fPlhFfUFMVho4w qzpCiW4jAOyxkW/d7XSFqpS6mm9K8KbDXLnToZx38WIuEZZG5AZQ2vzE8iOc44QlhUwCcH GK5fHfdDnWLM0CLEggCXQWobMzq8ydPjeHkRuYqnuao1n9u4KBvyxb28sPcJyt/Ih65H5F HxCcP2yMVtEhmKhFKoWIbRf3Uv9MlLtgFHePaCQRgD3flkdteFq6bOWPKVdl4g== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f In-Reply-To: <bug-273582-227@https.bugs.freebsd.org/bugzilla/> Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes