Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

aliases

Status
Not open for further replies.

crimzon

Programmer
May 15, 2002
2
US
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top