shell script not performed completely
by DeutscherMichel from LinuxQuestions.org on (#53141)
Hi,
I am using debian stretch.
In my user account I created a shell script to define my aliases
/home/<my accountname>/bash_aliases
that is called by the bashrc script.
That works well.
To use the same aliases when working as root (admin) user I put this script call to the end of root bashrc script.
To ensure it is called I put an echo command into the first line of bash_aliases.
The script is called but the aliases defined there do obviously not exist.
What is wrong, who can help?
Thanks for your help
Michel


I am using debian stretch.
In my user account I created a shell script to define my aliases
/home/<my accountname>/bash_aliases
that is called by the bashrc script.
That works well.
To use the same aliases when working as root (admin) user I put this script call to the end of root bashrc script.
To ensure it is called I put an echo command into the first line of bash_aliases.
The script is called but the aliases defined there do obviously not exist.
What is wrong, who can help?
Thanks for your help
Michel