home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / gnu / ghostscr / bug / 1213 < prev    next >
Encoding:
Text File  |  1992-11-15  |  1.5 KB  |  42 lines

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