Bug 689846 - ps2ps does not accept '-' as input from stdin
Summary: ps2ps does not accept '-' as input from stdin
Status: NOTIFIED FIXED
Alias: None
Product: Ghostscript
Classification: Unclassified
Component: General (show other bugs)
Version: 8.62
Hardware: PC Linux
: P4 normal
Assignee: Alex Cherepanov
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-05-16 08:21 UTC by Tomas Ebenlendr
Modified: 2008-12-19 08:31 UTC (History)
0 users

See Also:
Customer:
Word Size: ---


Attachments
patch (1.78 KB, patch)
2008-05-17 06:15 UTC, Alex Cherepanov
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Tomas Ebenlendr 2008-05-16 08:21:36 UTC
ps2ps handles '-' parameter wrong way.
Here is thr patch: (one character changed)
--- /usr/bin/ps2ps      2007-09-13 17:13:43.000000000 +0200
+++ ps2ps       2008-05-16 17:19:18.000000000 +0200
@@ -10,7 +10,7 @@
 while true
 do
        case "$1" in
-       -*) OPTIONS="$OPTIONS $1" ;;
+       -?*) OPTIONS="$OPTIONS $1" ;;
        *)  break ;;
        esac
        shift
Comment 1 Alex Cherepanov 2008-05-17 06:15:02 UTC
Created attachment 4024 [details]
patch

The same fix is needed in a few other scripts.
Comment 2 Alex Cherepanov 2008-05-24 19:18:32 UTC
The patch is committed as a rev. 8773.