This is the mail archive of the mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: ghostscript on Windows and cygwin path style

On Thu, 20 Nov 2003, Nev Bis wrote:

> I have cygwin version 1.32 running on Windows XP Pro.
FYI, there is no such version.  Your cygcheck.out shows version 1.3.22.
The latest is 1.5.5.  I'd recommend upgrading.

> I have ghostscript 8.11 installed in
> C:\gs\gs8.11\bin. Under this same directory, I have a
> file called "gs", containing this line:
> gswin32c $*
> I also have XFree86 installed and xfig 3.2.4
> Xfig has a problem invoking gs to convert a eps file
> into pcx. The problem
> appears to be that gs does not recognize the path
> style. In fact when I
> invoke gs from the bash shell with a file under the
> working directory, it
> works fine. But when I call it this way
> gs /c/directory/
> I get this error from ghostscript
> /undefinedfilename in ( /c/directory/
> What should I do?
> Thanks,
> Nevine

Try changing your "gs" file to

for i in "$@"; do
  PARAMS="$PARAMS '`cygpath -w -- "$i"`'"
eval "set -- $PARAMS"
gswin32c "$@"

and see if it helps.
      |\      _,,,---,,_
ZZZzz /,`.-'`'    -.  ;-;;,_
     |,4-  ) )-,_. ,\ (  `'-'		Igor Pechtchanski, Ph.D.
    '---''(_/--'  `-'\_) fL	a.k.a JaguaR-R-R-r-r-r-.-.-.  Meow!

"I have since come to realize that being between your mentor and his route
to the bathroom is a major career booster."  -- Patrick Naughton

Unsubscribe info:
Problem reports:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]