1. Some attempts ago, the error message was
Code:
/bin/bash^M: bad interpreter: No such file or directory
Now, after several attempts and re-editting of the script, I get no message at all, but simply no effect. Rather curious is the
^M charracter combination above (in the error message) which I never typed in my scripts.
2. My attempts merely consist in double mouse clicking directly on the script icon which is located on the user Desktop (therefore, no nautilus or Dolphin etc etc but only straightforward double click on the icon). Any way, I'm working under KDE though having installed both GNOME and KDE as well.
3. By the way, some scripts do work correctly, if
/usr/bin/mc is replaced by another binary. For instance, the following scripts does work under X sessions:
Code:
!#/bin/bash
nautilus
exit
However I was not able to notice clear criteria about which binary are accepted and which not. For instance, the
ls command (instead of
/usr/bin/mc) doesn't work (i.e. it produces no effect when trying to execute). Any way,
all scripts which I tested till now do work correctly when run under true shell sessions.