I've read on this website that:
And my first question is: Is there a way to find out which shell is the default one in case of shebang on Ubuntu? I suppose it's sh (which is linked to dash), but is there an official way to check it (and maybe change it as well)?If you do not specify an interpreter line, the default is usually the /bin/sh. But, it is recommended that you set #!/bin/bash line.
In Ubuntu, running a file with execute permission bit set opens a window with Run in Terminal, Display, Cancel and Run options available.
If the first one is chosen and no shebang is specified in the file, I suppose that the script will be executed by sh->dash as the BASH variable is unset upon execution.
My second question is that why choosing the Run option produces no action? Nothing happens, regardless of whether I put the shebang line into the script or not...