Hacker News
new
|
past
|
comments
|
ask
|
show
|
jobs
|
submit
login
playpause
on Oct 17, 2019
|
parent
|
context
|
favorite
| on:
Stupid Unix Tricks
That seems more reasonable, but it's not what the author wrote. He precedes the snippet with "Don’t try to install things with brew if brew is not installed", so his intention does seem to be to swallow errors silently, which is definitely weird.
pletnes
on Oct 17, 2019
|
next
[–]
He might want his .bashrc to work on both macos and linux.
00N8
on Oct 18, 2019
|
parent
|
next
[–]
IME .bashrc already doesn't work the same on OS X, though, so that's still a weird reason.
zeroimpl
on Oct 18, 2019
|
root
|
parent
|
next
[–]
Likely due to using the older version of bash preinstalled on Mac. Installing a new one and it should be virtually identical.
Guidelines
|
FAQ
|
Lists
|
API
|
Security
|
Legal
|
Apply to YC
|
Contact
Search: