Article View: comp.os.msdos.misc
Article #2895Re: minus sign in file names?
From: Marcel
Date: Tue, 17 Nov 1992 10:40
Date: Tue, 17 Nov 1992 10:40
27 lines
1834 bytes
1834 bytes
koslowj@math.ksu.edu (Juergen Koslowski) writes: #Yesterday I encountered a strange behaviour of MS-DOS 5.0. I tried to write a #batch file that takes a string as input, adds an extension to it (.tex in my #case), and then processes the corresponding file further. One of my files is #called cc-1.tex. When calling the batch file with the argument "cc-1" only the #"cc" was recognized, and the "-1" was ignored. On the other hand, strings of #the form "cc0-" is processed correctly, as is a string of the form "cc_1". Funny. Before I bought my PC, I did my homework on an MSX2 home-computer, which runs MSX-DOS (but usually MSX-BASIC :-). MSX-DOS (1.11 or so) is nothing but a stripped down MS-DOS: it does not have directories, just COPY, DEL, REN, PAUSE, TYPE and a bit more. At the MSX-DOS prompt, a filename containing a minus is also not properly recognized: COPY A:cc-0.tex B: did not work, I had to do COPY A:cc?0.tex B: Applications do not seem to suffer from this strange behaviour. Unfortunately, I have no solution, but the above shows that it might not be just an MS-DOS 5.0 error... Marcel. -- X Marcel Wijkstra AIO (wijkstra@fwi.uva.nl) |X| Faculty of Mathematics and Computer Science X University of Amsterdam The Netherlands ======Life stinks. Fortunately, I've got a cold.========
Technical Details
Message-ID:
<1992Nov17.104000.22443@fwi.uva.nl>Path:
arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!fwi.uva.nl!wijkstraReferences:
<1e994bINNohv@hilbert.math.ksu.edu>Show Full Headers
Complete Article Headers
Newsgroups: comp.os.msdos.misc Path: arc1-ca.pugleaf.net!sparky!uunet!mcsun!sun4nl!fwi.uva.nl!wijkstra From: wijkstra@fwi.uva.nl (Marcel) Subject: Re: minus sign in file names? Message-ID: <1992Nov17.104000.22443@fwi.uva.nl> Keywords: batch file parameters and filenames with minus sign Sender: news@fwi.uva.nl Nntp-Posting-Host: job.fwi.uva.nl Organization: FWI, University of Amsterdam References: <1e994bINNohv@hilbert.math.ksu.edu> Date: Tue, 17 Nov 1992 10:40:00 GMT Lines: 27