If I run export PATH=$PATH:/home/mike/bin/*:/home/mike/app/* from a command line it works fine, but if I put it into a bash script, it doesn't work (even with a restart). I have also tried including double-quotes and curly brackets for the variables.
1 Answer
You should only add path in this environnement in this variable. Change your script to use the following command
export PATH="$PATH:/home/mike/bin/:/home/mike/app/" 1