On Thu 28 Nov 2024 at 21:52:05 (+0700), Max Nikulin wrote: > On 28/11/2024 11:13, David Wright wrote: > > $ man -t bash | ps2pdf - /tmp/bash.pdf > > What is the point in converting man when the same content is available > as texinfo source? Moreover, PDF file is ready to use: > > /usr/share/doc/bash-doc/bash.html > /usr/share/doc/bash-doc/bash.pdf > /usr/share/doc/bash-doc/bashref.html > /usr/share/doc/bash-doc/bashref.pdf > > Latest released version is available from > <https://www.gnu.org/software/bash/manual/>
That Debian supplies a PDF in bash-doc certainly lends support to its being a useful format. But man-t yields a PDF with your appropriate page size, whereas bash-doc has only A4.¹ Just as cd happened to be the command that triggered the OP's problem with quoting, so bash just happens to be the man page that's most relevant for answering the OP's question. But where are the PDF versions of other lengthy manpages, like curl, ffmpeg-all, fvwm, gm, mc, mplayer, mpv, rsync, etc., depending where you draw the line. Perhaps permute fish, give, man, teach, into well-known aphorism. ¹ With Letter size in xpdf, I press 3 for 200%, which gives me exactly two PageDowns per page. Annoyingly, A4 needs an extra PageDown to move to the next page. Cheers, David.