You're viewing a single thread.
No idea when this happened but you can also use forward slashes in Windows. So typing
c:/users
into the Explorer address bar works.26 0 ReplyYou can even mix and match!
C:\tmp/file.txt
is valid. Very helpful for cross-os compatibility.13 0 ReplyDoes only windows do this or do Linux and mac work with both slashes too ?
I thought linux was pretty strict with this
5 0 Replyonly windows, afaik. On linux \ is the escape symbol
10 0 ReplyWindows is the odd one out, everywhere else uses forward slash.
3 0 ReplyOn classic MacOS the path separater was a ":".
4 0 Reply
Beat me to it. It works in CMD/PowerShell too. It's easier to just train your muscle memory to always use / regardless of platform
3 0 ReplyI use forward slashes in all of my software's paths, so I don't have to fiddle around with it when I'm porting to Linux (in the future, I'll likely go from "dev on Windows, port to Linux" to "dev on Linux, port to Windows).
3 0 Reply