🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
1 messages
1 total messages Started by bugzilla-noreply Thu, 19 Nov 2026 10:36
[Bug 273582] man: check if run in a pipe before invoking MANPAGER
#543
Author: bugzilla-noreply
Date: Thu, 19 Nov 2026 10:36
26 lines
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
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads