I am working on a project to port scripts between Sco and RHat. This involves creating aliases that will translate sco specific commands. Hardcoding the changes within the scripts at every necessary instance works.
I have tried defining the aliases in ~/.bash_profile,
~/.bashrc, and /etc/bashrc. These have the desired effects on the command line, but are not working inside scripts.
I assume this has to do with the spawning of a subshell, which is not seeing the aliases (??)
I have even tried hardcoding the aliases at the beginning of each script. The script still does not see them.
Does anyone know where I can define these aliases so that they can be seen by the scripts?? Any input would be very helpful.
thanks
I have tried defining the aliases in ~/.bash_profile,
~/.bashrc, and /etc/bashrc. These have the desired effects on the command line, but are not working inside scripts.
I assume this has to do with the spawning of a subshell, which is not seeing the aliases (??)
I have even tried hardcoding the aliases at the beginning of each script. The script still does not see them.
Does anyone know where I can define these aliases so that they can be seen by the scripts?? Any input would be very helpful.
thanks