My question is simple.
Why ubuntu don't support sh example.sh command?
It's more convenient than cd $wd; ./example.sh and add PATH in some situation.
login.sh
~/bin/logmitgw.sh -i 4564646 dfdsfsdf
logmitgw.sh
some code
When I'm running sh ~/bin/login.sh
It print
sh: 0: Can't open ~/bin/login.sh
ls -l ~/bin/login.sh
-rwxrwxr-x
cd $wd? – Mowgli Nov 18 '12 at 4:13sh example.sh) should work, unless the script you are trying to execute requires another shell or interpreter different fromsh. – Salem Nov 18 '12 at 4:21