logoalt Hacker News

dhosekyesterday at 11:47 PM1 replyview on HN

The VMS influence is also why DOS and NT used / for options rather than - like Unix. I was a big fan of the CLD method of defining commands. It provided a nice standardized way of parsing command line arguments that was going to be consistent between all applications.


Replies

p_ltoday at 1:31 AM

DOS uses / because programs written for CP/M, and which were subsequently ported to MS-DOS, used forward slashes.

when PC/MS-DOS 2.0 was released, with support for directories, it supported both forward and backward slashes for directory separator because Microsoft programmers wanted to use forward slashes (bringing them over from Xenix, including adding virtual "DEV" directory with device files), but for compatibility and user friendliness the default was \ for directories and / for options