@Linuxmemed to linuxmemes • 1 year agoBattle of the slashesimagemessage-square16arrow-up1438arrow-down18
arrow-up1430arrow-down1imageBattle of the slashes@Linuxmemed to linuxmemes • 1 year agomessage-square16
minus-square@woelkchenlink26•1 year 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-square@CupDocklink13•1 year agoYou can even mix and match! C:\tmp/file.txt is valid. Very helpful for cross-os compatibility.
minus-squarePunkid link5•1 year agoDoes only windows do this or do Linux and mac work with both slashes too ? I thought linux was pretty strict with this
minus-square@[email protected]linkfedilink3•1 year agoWindows is the odd one out, everywhere else uses forward slash.
minus-squaremanbartlinkfedilink3•edit-21 year 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
minus-squareZILtoid1991linkfedilink3•1 year 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).
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 “:”.
deleted by creator
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
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).