4 ms·
The backslash as path dates back at least as far as CP/M which didn't have directories and used a forward-slash instead of a minus for command flags. Then when
by aidenn0 7y ago
The backslash as path dates back at least as far as CP/M which didn't have directories and used a forward-slash instead of a minus for command flags. Then when directories were added, a forward-slash was obviously unavailable.
[edit] Apparently CP/M took it from VMS, which used period as a path separator.
- catblast 7y agoWonder where you got that information from, since CP/M is older than VMS by like 3 years. Can’t be... wonder where this keeps cropping up. Besides CPM filesystem wasn’t hierarchical.
- aidenn0 7y ago> Wonder where you got that information from, since CP/M is older than VMS by like 3 years. Can’t be... wonder where this keeps cropping up. This stack-exchange post[1] Looks like that's a corruption of the information from a MS blog[2], which does not mention CP/M but DOS 1.0 as taking it from DEC in general, including systems older than VMS. > Besides CPM filesystem wasn’t hierarchical. Which I mentioned in my comment. 1: https://superuser.com/questions/176388/why-does-windows-use-backslashes-for-paths-and-unix-forward-slashes https://superuser.com/questions/176388/why-does-windows-use-... 2: https://web.archive.org/web/20120304135002/http://blogs.msdn.com/b/larryosterman/archive/2005/06/24/432386.aspx https://web.archive.org/web/20120304135002/http://blogs.msdn...
- aidenn0 7y agoDOS couldn't use "/" for paths because it was already using it for command flags (where unix uses "-"). This predates both VMS and CP/M by being used in RT-11 (an older DEC OS).
- reaperducer 7y agoThe backslash as path dates back at least as far as CP/M which didn't have directories and used a forward-slash instead of a minus for command flags. I had a CP/M machine in the 70's, and I remember it quite differently. My memory was that CP/M used normal slashes for directory separation, and the backslash was a Microsoft bodge so it could pretend it didn't have Seattle Computer Products copy CP/M 80 to make DOS. I'm not at home, so I can't verify the slash situation on any of my CP/M emulators. It's also possible that I am not remembering correctly because I was also using Vaxen and PR1MEOS in those years.