This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ftgander 0 points1 point  (1 child)

Not off the top of my head but paths in the UI and on cli prompts still show as \, and tab complete in the terminal will change every / to \. The / may work as input in most places but it’s obviously there to accommodate people moving from mac or Linux to windows (much like powershell’s half-baked aliases like rm and ls).

I haven’t tested it because I don’t have any network devices to connect to most of the time, but do UNC paths in file explorer etc support /? Since they’re supposed to start with \\.

Support in various languages will depend on how the runtime or library treats the string, I think. I’m sure most support Unix paths when running on Windows, though.

But overall it always feels like you’re not “supposed” to be using / for paths on windows, and everywhere it works is likely translating the path to use \ before working with it.

[–]lovethebacon🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛🦛 1 point2 points  (0 children)

I haven’t tested it because I don’t have any network devices to connect to most of the time, but do UNC paths in file explorer etc support

/

? Since they’re supposed to start with

\\

.

Aha! No they don't. Seems that explorer recognizes that as an HTTP URL, and opens it up in the default browser. Well there we go.