Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Not an actual bug, but I found this a couple of days ago. And it seems like an elegant hack, allowing `/` in directory, files, etc.

Typing `mkdir foo:bar` in my macOS's terminal leads to a directory, that Finder shows as `foo/bar`.



Classic Mac OS (<10) used : as a directory separator, so it's probably related to that.


Good luck adding that directory to your PATH :)


Such directories are non-portable and can’t be used in $PATH on any Unix, nor any other path-like mechanism like $DYLD_LIBRARY_PATH.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: