Messages in this thread |  | | | From | (H. Peter Anvin) | | Subject | Re: [PATCH] Speeding up FAT operations | | Date | 23 Sep 1998 22:52:18 GMT |
| |
Followup to: <Pine.LNX.3.95.980923084335.832D-100000@chaos.analogic.com> By author: "Richard B. Johnson" <root@chaos.analogic.com> In newsgroup: linux.dev.kernel > > This may not mean much, but two years ago when I first started learning a > > computer I was learning QBASIC. And I read a post somewhere of an error in > > QBASIC that would allow you to make a space in the name that no other program > > could read except another QBASIC program that opened it the same way. It was > > something like the following... (I haven't touched it for over a year and a > > half so it may not be completely accurate) > > > > open "blah hi" as binary #1 (or something like this) > > print #1, "jkfsdjlkfsdjkl" > > close #1 > > > > Then you can open "blah hi" with the QBASIC program again. > > > > The system never reported it as an error or anything, and it would show up as > > a valid file when you did a DIR. In fact, when you got a directory listing, > > it would show it with the space. > > > > Yes. A DOS File-System emulator cannot assume that DOS file-names are > all in upper case. It also can't assume that it contains "valid" > characters. DOS File names are not supposed to contain '.', ' ', etc., > but they can. >
Hang on! That's a different thing -- you can't create those files with DOS system calls. Space *IS* a legal character in DOS filenames -- the system calls will happily accept it, although the shell won't (although it will match it against ?).
-hpa -- PGP: 2047/2A960705 BA 03 D3 2C 14 A8 A8 BD 1E DF FE 69 EE 35 BD 74 See http://www.zytor.com/~hpa/ for web page and full PGP public key I am Bahá'í -- ask me about it or see http://www.bahai.org/ "To love another person is to see the face of God." -- Les Misérables
- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.rutgers.edu Please read the FAQ at http://www.tux.org/lkml/
|  |