home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #27 / NN_1992_27.iso / spool / comp / os / msdos / misc / 6180 < prev    next >
Encoding:
Text File  |  1992-11-17  |  1.8 KB  |  41 lines

  1. Newsgroups: comp.os.msdos.misc
  2. Path: sparky!uunet!mcsun!sun4nl!fwi.uva.nl!wijkstra
  3. From: wijkstra@fwi.uva.nl (Marcel)
  4. Subject: Re: minus sign in file names?
  5. Message-ID: <1992Nov17.104000.22443@fwi.uva.nl>
  6. Keywords: batch file parameters and filenames with minus sign
  7. Sender: news@fwi.uva.nl
  8. Nntp-Posting-Host: job.fwi.uva.nl
  9. Organization: FWI, University of Amsterdam
  10. References: <1e994bINNohv@hilbert.math.ksu.edu>
  11. Date: Tue, 17 Nov 1992 10:40:00 GMT
  12. Lines: 27
  13.  
  14. koslowj@math.ksu.edu (Juergen Koslowski) writes:
  15.  
  16. #Yesterday I encountered a strange behaviour of MS-DOS 5.0. I tried to write a
  17. #batch file that takes a string as input, adds an extension to it (.tex in my
  18. #case), and then processes the corresponding file further. One of my files is 
  19. #called cc-1.tex. When calling the batch file with the argument "cc-1" only the
  20. #"cc" was recognized, and the "-1" was ignored. On the other hand, strings of
  21. #the form "cc0-" is processed correctly, as is a string of the form "cc_1". 
  22.  
  23. Funny. Before I bought my PC, I did my homework on an MSX2 home-computer,
  24. which runs MSX-DOS (but usually MSX-BASIC :-). MSX-DOS (1.11 or so) is
  25. nothing but a stripped down MS-DOS: it does not have directories, just COPY,
  26. DEL, REN, PAUSE, TYPE and a bit more. At the MSX-DOS prompt, a filename
  27. containing a minus is also not properly recognized:
  28.     COPY A:cc-0.tex B:    did not work, I had to do
  29.     COPY A:cc?0.tex B:
  30. Applications do not seem to suffer from this strange behaviour.
  31.  
  32. Unfortunately, I have no solution, but the above shows that it might not be
  33. just an MS-DOS 5.0 error...
  34.  
  35. Marcel.
  36. -- 
  37.  X       Marcel Wijkstra   AIO   (wijkstra@fwi.uva.nl)
  38. |X|         Faculty of Mathematics and Computer Science    
  39.  X           University of Amsterdam   The Netherlands
  40. ======Life stinks. Fortunately, I've got a cold.========
  41.