<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "http://bugs.gentoo.org/bugzilla.dtd">

<bugzilla version="2.22.7"
          urlbase="http://bugs.gentoo.org/"
          maintainer="bugzilla@gentoo.org"
>

    <bug>
          <bug_id>63435</bug_id>
          
          <creation_ts>2004-09-09 08:44 0000</creation_ts>
          <short_desc>ps2ps does not allow - as filename</short_desc>
          <delta_ts>2005-03-16 04:28:25 0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>Gentoo Linux</product>
          <component>Applications</component>
          <version>unspecified</version>
          <rep_platform>All</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          
          <priority>P2</priority>
          <bug_severity>minor</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          
          <everconfirmed>1</everconfirmed>
          <reporter>ebik@artax.karlin.mff.cuni.cz</reporter>
          <assigned_to>printing@gentoo.org</assigned_to>
          

      

      
          <long_desc isprivate="0">
            <who>ebik@artax.karlin.mff.cuni.cz</who>
            <bug_when>2004-09-09 08:44:11 0000</bug_when>
            <thetext>Reproducible: Always
Steps to Reproduce:
bash$ ps2ps - - &lt;input.ps &gt;output.ps

Actual Results:  
Program exited with following message:
Usage: ps2ps ...switches... input.ps output.ps


Expected Results:  
It should generate output.ps (provided that input.ps exists)

Patch to repair this: (adding one `?&apos; to to the shell script)

--- /usr/bin/ps2ps	2003-12-10 18:27:13.000000000 +0100
+++ bin/ps2ps	2004-09-09 17:03:14.000000000 +0200
@@ -1,20 +1,20 @@
 #!/bin/sh
 # $Id: ps2ps,v 1.3 2002/04/23 11:58:36 easysw Exp $
 # &quot;Distill&quot; PostScript.
 
 OPTIONS=&quot;-dSAFER&quot;
 while true
 do
 	case &quot;$1&quot; in
-	-*) OPTIONS=&quot;$OPTIONS $1&quot; ;;
+	-?*) OPTIONS=&quot;$OPTIONS $1&quot; ;;
 	*)  break ;;
 	esac
 	shift
 done
 
 if [ $# -ne 2 ]; then
 	echo &quot;Usage: `basename $0` ...switches... input.ps output.ps&quot; 1&gt;&amp;2
 	exit 1
 fi
 
 exec gs -q -sDEVICE=pswrite &quot;-sOutputFile=$2&quot; -dNOPAUSE -dBATCH $OPTIONS &quot;$1&quot;</thetext>
          </long_desc>
          <long_desc isprivate="0">
            <who>lanius@gentoo.org</who>
            <bug_when>2005-03-16 04:28:25 0000</bug_when>
            <thetext>applied.</thetext>
          </long_desc>
      
    </bug>

</bugzilla>