| bencollver 11.02.2026, 16:18 |
Ctrl-Z was never actually an EOF character in MS-DOS (Miscellaneous) |
MS-DOS didn't have an End-Of-File character of any sort. The MS-DOS system API from version 2.0 onwards treated files as simple octet streams, with no particular octet values having any special meanings. The end-of-file position of a file was recorded in file metadata. (It's the length field in the file's directory entry.) No special meaning was ascribed to character 26 (or indeed to any other character) within file data. |
| tkchia 11.02.2026, 16:43 (edited by tkchia, 11.02.2026, 17:07) @ bencollver |
Was: Ctrl-Z was never actually an EOF character in MS-DOS |
Hello bencollver, --- |
| bencollver 11.02.2026, 19:26 @ tkchia |
Was: Ctrl-Z was never actually an EOF character in MS-DOS |
> Hello bencollver, |
| bretjohn Rio Rancho, NM, 12.02.2026, 02:45 @ bencollver |
Ctrl-Z was never actually an EOF character in MS-DOS |
You seem to be conflating some things here. Ctrl-Z is not even a character -- it is a (but not the only) keyboard method of entering ASCII code 26. ASCII code 26 IS the End-Of-File character _in ASCII_. If you're dealing with ASCII text (which you usually are at a DOS command prompt) it simply IS the EOF character. But if you're not dealing with plain/pure ASCII text, code 26 could mean anything. And even in an ASCII text editor (including the editor DOS uses at the command-line), ASCII code 26 may not really mean "End-Of-File" or "End-Of-Input" in the sense you seem to be implying. |
| bencollver 12.02.2026, 15:40 @ bretjohn |
Ctrl-Z was never actually an EOF character in MS-DOS |
> ASCII code 26 IS the End-Of-File character _in ASCII_. If you're dealing |
| bretjohn Rio Rancho, NM, 14.02.2026, 02:34 @ bencollver |
Ctrl-Z was never actually an EOF character in MS-DOS |
Let me just say you can't necessarily trust Wikipedia. To claim that DOS essentially ignores (or at least sort of ignores) the EOF character (or what you're calling SUB which means it should be totally ignored as if it doesn't even exist) is simply not true. |
Thread view