Bug 692322

Summary: ps2pdf.1: please clarify that output goes to cwd by default
Product: Ghostscript Reporter: Jonathan Nieder <jrnieder>
Component: DocumentationAssignee: Chris Liddell (chrisl) <chris.liddell>
Status: RESOLVED FIXED    
Severity: minor CC: henry.stiles
Priority: P4    
Version: master   
Hardware: All   
OS: All   
Customer: Word Size: ---
Attachments: documentation patch

Description Jonathan Nieder 2011-07-04 01:00:00 UTC
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?
Comment 1 Jonathan Nieder 2011-07-04 01:02:01 UTC
Created attachment 7640 [details]
documentation patch
Comment 2 Henry Stiles 2011-07-07 16:06:40 UTC
Seems like a painless change, assigning to owner.
Comment 3 Chris Liddell (chrisl) 2011-07-08 10:17:49 UTC
Patch applied in commit:
02a53b643780f40f5d8947272eabb947002c40b3

http://git.ghostscript.com/?p=ghostpdl.git;a=commit;h=02a53b


Thanks!