I have an executanle file in a directory (say /home/mahmood/test/do-sample) and in a bash file I want to run it:
Code:
#!/bin/bash
M_VARIABLE = $HOME/test
$M_VARIABLE/do-sample
It does not work and the error is:
Code:
$M_VARIABLE/do-sample: No such file or directory
but if I replace the absolute path, it works:
Code:
#!/bin/bash
/home/mahmood/test/do-sample
What is wrong with my varibale definition?
Thanks,