Hacker News new | ask | show | jobs
by pyre 4870 days ago
IIRC, 'source' is a bash-ism, while '.' is POSIX, so it might not work in all shells. That said $() isn't POSIX, but works on enough shells, that I'm comfortable replacing `` with it.
2 comments

$() has been POSIX for a while, here's the SUSv2 definition from 1997: http://pubs.opengroup.org/onlinepubs/7908799/xcu/chap2.html#...
Actually $() is in POSIX (or at least, it is now).

You're right about 'source' though, shell scripts that want a semblance of portability must use '.'.