I'm using an automation engine to run perl scripts. script_X requires a wrapper script so it's run like:
wrapper_script script_X --parameters
But the automation engine can't understand that invocation. At the moment, I've manually edited ./bashrc to say:
alias script_X='wrapper_script script_X'
I'm currently testing to see if the automation engine will work with this. It can however handle environment variables.
Is it possible to export an environment variable to create/modify an alias?
(From comments, I realise this may be a convoluted method to solve a limitation, however I'm still interested in the answer to the original question, out of curiosity)