Linuxmemed@lemmy.world to linuxmemes@lemmy.world · 2 years agoBattle of the slasheslemmy.worldimagemessage-square17fedilinkarrow-up1336
arrow-up1331imageBattle of the slasheslemmy.worldLinuxmemed@lemmy.world to linuxmemes@lemmy.world · 2 years agomessage-square17fedilink
minus-squarewoelkchen@lemmy.worldlinkfedilinkarrow-up18·2 years agoNo idea when this happened but you can also use forward slashes in Windows. So typing c:/users into the Explorer address bar works.
minus-squareCupDock@lemmy.worldlinkfedilinkarrow-up7·2 years agoYou can even mix and match! C:\tmp/file.txt is valid. Very helpful for cross-os compatibility.
minus-squarePunkid @lemmy.worldlinkfedilinkarrow-up4·2 years agoDoes only windows do this or do Linux and mac work with both slashes too ? I thought linux was pretty strict with this
minus-squareMalix@lemmy.worldlinkfedilinkarrow-up7·2 years agoonly windows, afaik. On linux \ is the escape symbol
minus-squareinverimus@lemm.eelinkfedilinkarrow-up2·2 years agoWindows is the odd one out, everywhere else uses forward slash.
minus-squarewoelkchen@lemmy.worldlinkfedilinkarrow-up4·2 years agoOn classic MacOS the path separater was a “:”.
minus-squareZILtoid1991@kbin.sociallinkfedilinkarrow-up3·2 years agoI 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).
minus-squaremanbart@kbin.sociallinkfedilinkarrow-up3·edit-22 years agoBeat me to it. It works in CMD/PowerShell too. It’s easier to just train your muscle memory to always use / regardless of platform
No idea when this happened but you can also use forward slashes in Windows. So typing
c:/users
into the Explorer address bar works.You can even mix and match!
C:\tmp/file.txt
is valid. Very helpful for cross-os compatibility.Does only windows do this or do Linux and mac work with both slashes too ?
I thought linux was pretty strict with this
only windows, afaik. On linux \ is the escape symbol
Windows is the odd one out, everywhere else uses forward slash.
On classic MacOS the path separater was a “:”.
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).
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