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.
Interesting sidenote: http://lists.freebsd.org/pipermail/freebsd-current/2010-Augu...