3 ms·
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 comfortabl
by pyre 14y 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.
- mpyne 14y agoActually $() 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 '.'.
- nuxi 14y ago$() has been POSIX for a while, here's the SUSv2 definition from 1997: http://pubs.opengroup.org/onlinepubs/7908799/xcu/chap2.html#tag_001_006_003 http://pubs.opengroup.org/onlinepubs/7908799/xcu/chap2.html#...