I'm new to bash scripting and learning "if then" statements. When I run the simple script below it executes and gives me the correct result however I still get an error. The name of the script is testscript.sh. The error is as follows: "./testscript: line 5: [csh: command not found]"
Can someone tell what this means?
#! /bin/bash MY_SHELL="csh" If ["$MY_SHELL" = "bash" then echo "You seem to like the bash shell." else Then "You don't seem to like the bash shell." fi