Hi, I am writing a shell script which will input a string parameter. Inside the script I will do different action depending on the string value. I wrote
if [ $1 == "test1" ]
So, this is all good
now if I change my script to
if [ $1 == "no" ]
myscript '-plll -o lll'
I enter most garbage parameter to myscript it will echo B but for a few it will return A. Why?
What do I need to do to fix this? Thanks!