Article View: gnu.ghostscript.bug
Article #505Re: GSWIN 2.5.2 and DOS pathnames
From: Angus Duggan
Date: Sun, 15 Nov 1992 17:30
Date: Sun, 15 Nov 1992 17:30
26 lines
1617 bytes
1617 bytes
In article <lg8a4gINN3ot@boogie.cs.utexas.edu>, swisher@cs.utexas.edu (Janet M. Swisher) writes: > In GSWIN (and GS for DOS, for that matter), when I type something > like: > > (c:\mypapers\sample.ps) run > > I get an /undefinedfilename error, and the operand stack shows: > > (c:mypaperssample.ps) (r) > > This does not happen if I specify the filename on the command line, or > if I use /'s instead of \'s. The "File Searching" section of USE.DOC > pretty clearly implies that GS ought to know how to handle \'s. So > why is it eating them instead? Because \ in a PostScript string is similar to \ in a C string; it escapes the next character. See page 29 of the Red Book, 2nd Edn. What you want is: (c:\\mypapers\\sample.ps) run a. -- Angus Duggan, Department of Computer Science, | PSUtils is available from University of Edinburgh, The King's Buildings, | ftp.dcs.ed.ac.uk in pub/ajcd. Mayfield Road, Edinburgh EH9 3JZ, Scotland. | selects, n-up, booklet & more INET: ajcd@dcs.ed.ac.uk | JANET: ajcd@uk.ac.ed.dcs | PHONE: +44(0)31 650 5126
Technical Details
Message-ID:
<BxrpyI.4C2@dcs.ed.ac.uk>Path:
arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dcs.ed.ac.UK!ajcdReferences:
<lg8a4gINN3ot@boogie.cs.utexas.edu>Show Full Headers
Complete Article Headers
Newsgroups: gnu.ghostscript.bug Path: arc1-ca.pugleaf.net!sparky!uunet!think.com!rpi!zaphod.mps.ohio-state.edu!cis.ohio-state.edu!dcs.ed.ac.UK!ajcd From: ajcd@dcs.ed.ac.UK (Angus Duggan) Subject: Re: GSWIN 2.5.2 and DOS pathnames Message-ID: <BxrpyI.4C2@dcs.ed.ac.uk> Followup-To: gnu.ghostscript.bug Sender: gnulists@ai.mit.edu Organization: Edinburgh University Fried Brain Carry-out References: <lg8a4gINN3ot@boogie.cs.utexas.edu> Distribution: gnu Date: Sun, 15 Nov 1992 17:30:18 GMT Approved: bug-ghostscript@prep.ai.mit.edu Lines: 27