251
woops
6y

Windows, why are you like this?

Comments
  • 1
  • 7
    windows wants to be special
  • 18
    Windows actually supports forward slash too.
  • 5
    Its not Unix based OS, there's no need to unify the syntax
  • 53
    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.
  • 5
    ⬆️this
  • 4
  • 1
    Well, windows works with both, but Linux and mac only with forward slashes 🙃
  • 1
    Scary Tux head 😫
  • 0
    Same could be said for Unix...!
  • 4
    Now 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"
  • 1
    Windows 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
  • 1
    It'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.
  • 0
    This 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.
  • 0
    @sudo-rm-rf I think computers should use UTC everywhere and only convert it to localtime when presenting to the user.
Add Comment