From 663f04f8f35e071618b8fa271297740ce1dfea63 Mon Sep 17 00:00:00 2001 From: Rodrigo Arias Mallo Date: Mon, 12 May 2025 21:30:12 +0200 Subject: Don't output man page list to stdout The objective of man -w is to determine if man has located the requested manual page. We need to silence the stdout not the stderr, otherwise we send the output to Dillo, which would confuse the parser. --- man.filter.dpi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/man.filter.dpi b/man.filter.dpi index afe880e..67d8a18 100755 --- a/man.filter.dpi +++ b/man.filter.dpi @@ -62,7 +62,7 @@ serve_manpage() { serve_404 exit 0 fi - if ! man -w $manpage 2>/dev/null; then + if ! man -w $manpage >/dev/null; then apropos=$(echo "$cleanref" | sed 's/(.*)//') serve_404 "$manpage" "$apropos" else -- cgit v1.2.3