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

Yeah, I recently realized why various bash examples I tried out don't work on OSX. I guess it's an obvious thing to check, but somehow it never occurred to me that OSX's bash would be five years old.


Also worth noting, osx uses bsd versions of various utilities like grep and sed, instead of gnu counterparts

Interesting sidenote: http://lists.freebsd.org/pipermail/freebsd-current/2010-Augu...


Some bash examples contains Linuxisms that is not UNIX-03 compliant which OS X is in full, might be that as well.




Consider applying for YC's Fall 2026 batch! Applications are open till July 27.

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

Search: