It annoys me having used Unix in college and now working on the Windows side. What's the history behind this decision? Anyone know why it worked out this way?
feedback
|
|
Unix introduced MS-DOS 2.0 introduced
Many Windows programs just pass filenames through to the underlying API, so they support (EDIT: corrected my assertion about the command interpreter; | |||||||||||||
feedback
|
|
The underlying Windows API can accept either the backslash or slash to separate directory and file components of a path, but the Microsoft convention is to use a backslash, and APIs that return paths put backslash in. MS-DOS 2.0 copied the hierarchical file system from Unix and thus used the forward slash, but (possibly on the insistence of IBM) added the backslash to allow paths to be typed into the command shell while retaining compatibility with MS-DOS 1.0 and CP/M where the slash was the command-line option indicator. Compare
which shows the current directory in wide format against
which runs the References: | ||||
|
feedback
|
|
For what it is worth I am researching why Unix used /. Multics preceded Unix and it used >. If I find out it will be some more useless trivia... | |||||
feedback
|
|
They based it on the flawed letter-marks-the-volume DOS-style. Multiple aliases with absoutely no guarantee for coherency for directories in the My document feature is my pet pieve, though. | |||||
feedback
|