Bug 692322 - ps2pdf.1: please clarify that output goes to cwd by default
Summary: ps2pdf.1: please clarify that output goes to cwd by default
Status: RESOLVED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: Documentation (show other bugs)
Version: master
Hardware: All All
: P4 minor
Assignee: Chris Liddell (chrisl)
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-07-04 01:00 UTC by Jonathan Nieder
Modified: 2011-07-08 10:17 UTC (History)
1 user (show)

See Also:
Customer:
Word Size: ---


Attachments
documentation patch (1.52 KB, patch)
2011-07-04 01:02 UTC, Jonathan Nieder
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
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!