analogduck
Programmer
When writing shell scripts (for bash and tsch), why is it that when a script calls another script from within it that the second script is 'source'd? Why can't the second script just be called like any other command which is called (without a 'source' preceeding it)?
Must you always 'source' secondary scripts which are called? Or are there exceptions to the rule? Must you 'source' even perl/python scripts, or just other tcsh/bash scripts?
'source' is mentioned briefly enough in the 'tcsh' and 'bash' man pages, but they don't bother explaining why it needs to be used.
Your knowledge is appreciated. Thank you.
-- Sean
Must you always 'source' secondary scripts which are called? Or are there exceptions to the rule? Must you 'source' even perl/python scripts, or just other tcsh/bash scripts?
'source' is mentioned briefly enough in the 'tcsh' and 'bash' man pages, but they don't bother explaining why it needs to be used.
Your knowledge is appreciated. Thank you.
-- Sean