Today I wanted to view a manual page with a PDF viewer: $ man -t ls >/tmp/ls.ps $ ps2pdf /tmp/ls.ps $ run-mailcap /tmp/ls.pdf Error: no such file "/tmp/ls.pdf" Weird. So I tried again: $ ps2pdf /tmp/ls.ps; echo $? 0 $ run-mailcap /tmp/ls.pdf Error: no such file "/tmp/ls.pdf" Looking at the manpage, I see | If the output filename is not specified, the output is placed | is a file of the same name with a '.pdf' extension. Either the | input filename or the output filename can be '-' to request | reading from stdin or writing to stdout, respectively I know I should have expected output to go to the cwd, following the usual convention followed by tools like "cc -c", but for some reason I didn't. How about this patch?
Created attachment 7640 [details] documentation patch
Seems like a painless change, assigning to owner.
Patch applied in commit: 02a53b643780f40f5d8947272eabb947002c40b3 http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=02a53b Thanks!