GMXRC alters the contents of the shell's special parameters
When I source GMXRC from e.g. a bash script the shell's special parameter $@ gets altered. I think that the contents of such variables should be preserved.
Fixed GMXRC so we are not polluting standard shell variables
csh/tcsh is now detected by looking for the lower-case $shell
variable, which seems to work on all recent platforms, instead
of using the 'set' command (which affected $* and $@ in bash).
#2 Updated by Erik Marklund about 8 years ago
Certainly! I'll try it out for master and release-4-6 too. What's seen below comes from release-4-5-patches
Here's the script
echo '$* before GMXRC:' $*
echo '$* after GMXRC:' $*
And here's the output
erikm@telperion:~$ ./tst.sh a few arguments
$* before GMXRC: a few arguments
$* after GMXRC: is_csh = 123
Here I used $* but the same thing happens with $@.