Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
drinchev
on March 25, 2018
|
parent
|
context
|
favorite
| on:
Ask HN: Weirdest hack that you ever saw in product...
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`.
acous
on March 25, 2018
|
next
[–]
Classic Mac OS (<10) used : as a directory separator, so it's probably related to that.
ComputerGuru
on March 25, 2018
|
prev
|
next
[–]
Good luck adding that directory to your PATH :)
xenadu02
on March 25, 2018
|
prev
[–]
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:
Typing `mkdir foo:bar` in my macOS's terminal leads to a directory, that Finder shows as `foo/bar`.