Hi Branden, On Fri, May 02, 2025 at 07:01:39AM -0500, G. Branden Robinson wrote: > [2] $ type mailman > mailman is a function > mailman () > { > local cmd=; > case "$1" in > -*) > opts="$opts $1"; > shift > ;; > esac; > set -- $(man -w "$@"); > cmd=$(zcat --force "$@" | grog -Tutf8 -b -ww -P -cbou -rU0 -rLL=72n > -rHY=0 -dAD=l $opts); > zcat --force "$@" | $cmd | less > }
I was trying to simplify your mailman() function to the following pipe (after parsing the options): man -w "$@" \ | xargs zcat --force \ | grog --run \ -Tutf8 -b -ww -P -cbou -rU0 -rLL=72n -rHY=0 -dAD=l \ $opts \ 2>/dev/null \ | less; And I found out that grog(1) seems to be not accepting a documented option: --run. [1] Am I doing something incorrectly? I never used grog(1) before, so it might very well be. Cheers, Alex [1]: $ MANWIDTH=72 man grog | head -n17 grog(1) General Commands Manual grog(1) Name grog - “groff guess”——infer the groff command a document requires Synopsis grog [--run] [--ligatures] [groff‐option ...] [--] [file ...] grog -h grog --help grog -v grog --version Description grog reads its input and guesses which groff(1) options are needed to render it. If no operands are given, or if file is “-”, grog reads the standard input stream. The corresponding groff command is normally written to the standard output stream. With the op‐ tion --run, the inferred command is written to the standard error stream and then executed. alx@devuan:~$ grog --run grog: error: unrecognized grog option '--run'; ignored usage: grog [groff-option ...] [--] [file ...] usage: grog {-v | --version} usage: grog {-h | --help} -- <https://www.alejandro-colomar.es/>
signature.asc
Description: PGP signature