In Ubuntu 16.04 with Bash I created a file $HOME/ulcwe/software_internal.sh
that contains a function rse()
without a call. The file is sourced in ~/.bashrc
(which was sourced by itself) and I can can call rse
from anywhere in the terminal and it will run without error.
Yet I tried to run this script file that contains a call to rse
in line 36, and I get this error:
line 36: rse: command not found
Why does the function called successfully in manual call (typing and executing rse
in Bash) but not from the Bash script and how could I call it successfully from the script?