Bug 689846

Summary: ps2ps does not accept '-' as input from stdin
Product: Ghostscript Reporter: Tomas Ebenlendr <ebik>
Component: GeneralAssignee: Alex Cherepanov <alex>
Status: NOTIFIED FIXED    
Severity: normal    
Priority: P4    
Version: 8.62   
Hardware: PC   
OS: Linux   
Customer: Word Size: ---
Attachments: patch

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.