[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#2792: pdf2ps script fails on one argument



Package: gs
Version: 3.53-3

The test for two parameters in /usr/bin/pdf2ps did not work when I called it
with just one parameter. Due to the missing second parameter, gs failed.

Here's a patch:

edd@miles:~> diff -c pdf2ps /usr/bin/pdf2ps
*** pdf2ps      Sun Apr 21 18:19:34 1996
--- /usr/bin/pdf2ps     Fri Apr 19 16:46:14 1996
***************
*** 1,7 ****
  #!/bin/sh
  # Convert PDF to PostScript.
! if [ $# -ne 2 ]; then
        echo "Usage: `basename $0` input.pdf output.ps" 1>&2
        exit 1
  fi
--- 1,7 ----
  #!/bin/sh
  # Convert PDF to PostScript.
! if [ $# -lt 1 -o $# -gt 2 ]; then
        echo "Usage: `basename $0` input.pdf output.ps" 1>&2
        exit 1
  fi

--
Dirk Eddelb"uttel                              http://qed.econ.queensu.ca/~edd


Reply to: