4 ms·
haha, I had no idea "source" and '.' were the same! It all gets a little bit clearer, one step at time....
by ImprovedSilence 14y ago
haha, I had no idea "source" and '.' were the same! It all gets a little bit clearer, one step at time....
- pyre 14y agoIIRC, '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#...