You're viewing a single thread.
woelkchen @lemmy.world
No idea when this happened but you can also use forward slashes in Windows. So typing
c:/users
into the Explorer address bar works.16 0 ReplyCupDock @lemmy.world You can even mix and match!
C:\tmp/file.txt
is valid. Very helpful for cross-os compatibility.8 0 ReplyPunkid @lemmy.world
Does only windows do this or do Linux and mac work with both slashes too ?
I thought linux was pretty strict with this
3 0 ReplyMalix @lemmy.world
only windows, afaik. On linux \ is the escape symbol
6 1 Replyinverimus @lemm.ee Windows is the odd one out, everywhere else uses forward slash.
2 0 Replywoelkchen @lemmy.world
On classic MacOS the path separater was a ":".
4 0 Reply
ZILtoid1991 @kbin.social
I 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 Replymanbart @kbin.social
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 Reply