logoalt Hacker News

TylerEtoday at 3:25 AM3 repliesview on HN

The biggest issue I remember is directory seperators... windows of course using \ which bash would then interpret as an escape. Cygwin mostly papered over that from what I can recall, but it could lead to some weirdness, like sometimes you'd get C:\\path\\es\\like\\this


Replies

bschwindHNtoday at 5:06 AM

We should be using the baguette emoji for path separators for cross-platform compatibility.

https://old.reddit.com/r/ProgrammerHumor/comments/96ufiz/pro...

rpedentoday at 3:41 AM

You could also use forward slashes, like C:/path/subpath, which has worked since Windows 1.0/DOS 2.0.

That's handy when you're entering paths in a Cygwin/MSYS Bash shell, but might not help much if you're trying to parse or otherwise work with existing patgh variables composed with backslashes.

show 1 reply
coldteatoday at 9:06 AM

Always used / and it worked for both cygwin/windows lands.