3 ms·
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
by mananaysiempre 4y ago
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/README.txt https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/...
[2] https://news.ycombinator.com/item?id=30510935 https://news.ycombinator.com/item?id=30510935
[3] https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/CONFIG.txt https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/...
[4] https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/XENIX.ASM https://github.com/microsoft/MS-DOS/blob/master/v2.0/source/...
[5] http://www.ctyme.com/intr/rb-2752.htm http://www.ctyme.com/intr/rb-2752.htm
- kiwidrew 4y agoYep, 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...)
- lproven 4y ago> 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-backslash-as-path-separator/ 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:IBM_Model_F_XT.png 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.