Ranter
Join devRant
Do all the things like
++ or -- rants, post your own rants, comment on others' rants and build your customized dev avatar
Sign Up
Pipeless API
From the creators of devRant, Pipeless lets you power real-time personalized recommendations and activity feeds using a simple API
Learn More
Comments
-
It's because DOS 1.0 didn't have directories, and IBM wrote most of the tools, and these fuckers decided to use / as command switch. When DOS 2.0 introduced directories, IBM wanted to keep their tools as is, and MS had to think of something other than / for directories, so they used \. Afterwards, they couldn't change that without breaking tons of applications.
-
tokumei21316yNow I can't get the TV/radio ads out of my head where they say backslash and mean forward slash for URLs.
Also should mention it makes string literals suck.
rm -rf "C:\\Windows\\System32" -
Redders9576yWindows isn't a DOS based OS since the year 2000!
It has had POSIX compliance since NT4, which is why Ubuntu on Windows works... There is no real reason left for it to use the wrong slash -
Redders9576yIt's wrong because it stands alone, the internet is the other, Linux, Unix MacOS, and many many others.
It would be really handy for there to be one true directory separator, as it is a really shitty thing to have to reengineer in an application for multi OS support. -
brayyy1496yThis is like the metric vs imperial measurement argument. Just because imperial came first doesn’t make it better or right. Most eventually agreed that metric is best, and then there is America/Windows not getting with the program.
Also, as @Krokoklemme pointed out, Windows now at least partially supports forward slashes. To me, that sounds like half-admitting that backslashes are going away in time. -
@sudo-rm-rf I think computers should use UTC everywhere and only convert it to localtime when presenting to the user.
Windows, why are you like this?
joke/meme