I have a bash script my_script.sh as follows:
#!/bin/bash
echo "Hello There"
# declare arrays
declare -a my_array
When I run it using sh my_script.sh I get:
Hello There
': not a valid identifiermy_array
When I run it using /bin/bash my_script.sh I get:
Hello There
': not a valid identifiermy_array
How do I run this script?