If you have any of these shebangs
Code:
#!/bin/sh #!/bin/dash #!/bin/bash #!/bin/tcsh #!/bin/zsh #!/bin/awesome_shell
Code:
sh my_script.sh
You need to use the appropriate shell
Code:
sh my_script.sh # If the shebang is #!/bin/sh dash my_script.sh # If the shebang is #!/bin/dash bash my_script.sh # If the shebang is #!/bin/bash tcsh my_script.sh # If the shebang is #!/bin/tcsh zsh my_script.sh # If the shebang is #!/bin/zsh
Code:
./my_script.sh