I'm a new Unix Admin at our site, and I've had got the following
We have a script that sets up a number of aliases to create
environments (EVs and aliases). This script is 'source'd by .cshrc
for our developers. It sets the alias to 'source' a script, and is
currently set to read extra parameters.
When we execute this on our site we use everyone's default shell,
which is tcsh - this allows parameters to be passed using source.
However, when csh (which is the standard shell at other sites) is
used, passing other parameters breaks down, because the csh version of
'source' doesn't allow parameters to be passed.
I need to confirm a couple of things, I guess. I assume that source
simply executes the commands in another script without forking - is
that correct? Is there any way of achieving this and passing through
extra parameters to the called script?
What are the best books to read to understand all types of shell
scripting? We have a heterogeneous HP/Sun/Linux environment...
Thanks - Adam...