I have set inside .bashrc some aliases that I need to be seen inside a shell script I can’t modify.
So, as long as I can’t expand the aliases inside that script, what alternative do I have?
(For example, I need to define python2.6 to be the same as python)
If you can wrap the script, you can define aliases in the wrapper and source (
. /path/to/script) the script. Both functions and aliases should work that way.If you can’t, you have to put the commands in PATH. Either as symlinks or as scripts.