Maybe 'man <(curl -sL -H "Accept: text/roff" https://jamesg.blog/2024/02/28/programming-projects/)' works then?
[1] https://zsh.sourceforge.io/Doc/Release/Expansion.html#Proces...
man <(curl ...) ends up working on Linux but for whatever reason still yields an error on macOS:
No manual entry for /dev/fd/11 curl -sL -H "Accept: text/roff" https://jamesg.blog/2024/02/28/programming-projects/ | mandoc -a
works on macOS (and should also work on (Free|Net|Open)BSD, which ship similar man toolchains).It's essentially running the process in another shell and sending its output to a tempfile. The name of that file is then substituted in the original command. So, in theory, equivalent to `inner > /tmp/file; outer /tmp/file`. This works with programs that don't read from stdin, or need two or more inputs, for example.