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

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.


He might want his .bashrc to work on both macos and linux.


IME .bashrc already doesn't work the same on OS X, though, so that's still a weird reason.


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: