Given a shell script file that begins as
# (bash script here),
and has been chmod +xed, is there any difference in running ./script and bash script from the command-line?
How may I know if a script is either written in bash or sh?
The first line of the script mean nothing, since on Linux, bash script has this line:
Actually, there are many distribution where bin/sh is bash (maybe a bin/sh is a link to bin/bash in those distro), and not bourn shell.