Quote:
Originally Posted by
Scrutinizer
IMO source is a bashism.
I just tested [edit]
seven shells on two OSes. BASH, CSH, ZSH, TCSH, two versions of KSH, and busybox ASH(which is a stripped-down descendant of a fairly old BSD bourne shell). The
only one that did
not have 'source' was an out-of-date ksh. The newer KSH was fine.
So, while I can see why you'd be sensitive to the use of that keyword, no, it's not a BASH-ism, and would appreciate it if you stopped trying to blame every bad shell habit on it. Nearly every imaginable shell has it except yours.
I considered using
. but it's difficult to read, especially for people new to the language. They could easily skip the space and mistake it for part of the path.