Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Note that the OEM README[1] for MS-DOS 2 (the first version with a hierarchical filesystem) suggests that it was at IBM’s insistence that MS-DOS used backslash for directories and slash for options, rather than slash for directories and hyphen-minus for options (even though Microsoft’s own programs for CP/M apparently used slash for options due to DEC influences, instead of the brackets used by CP/M itself[2], so this is a bit of a tangle). The documentation and examples for CONFIG.SYS[3] also bear an evident Unix influence, note in particular AVAILDEV and SWITCHAR. The MS-DOS-specific calls for file descriptors (as opposed to CP/M-compatible calls for FCBs) are called “XENIX file calls” in the source[4]. (All DOS system calls for files accepted either separator, but the option parsers would retrieve SWITCHAR[5] and give it precedence.)

[1] https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/...

[2] https://news.ycombinator.com/item?id=30510935

[3] https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/...

[4] https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/...

[5] http://www.ctyme.com/intr/rb-2752.htm



> it was at IBM’s insistence that MS-DOS used backslash for directories and slash for options

I think this is a misinterpretation. See the footnote in this article:

http://www.os2museum.com/wp/why-does-windows-really-use-back...

Look at the positions of `\` and `/` on this keyboard: https://en.wikipedia.org/wiki/Model_F_keyboard#/media/File:I...

Both were easy-to-type characters on US-layout keyboards, not requiring shift or any other control key.


Yep, there was a (brief) period of time -- before MS-DOS became wildly popular -- when Microsoft was pitching Xenix as the future operating system for the PC.

(Also worth noting is that MS-DOS 2.0 was a nearly complete rewrite of the 1.x codebase...)




Consider applying for YC's Winter 2026 batch! Applications are open till Nov 10

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: