I\'m trying to use a case statement to determine if I have a legal command. It looks something like this:
function commandTest { case $1 in –score) e
As posted, your sample code has an en-dash (Unicode U+2013) in front of score, instead of a minus sign (ASCII 0x2D), which is preventing bash from matching the string -score
score
-score
Switch:
–score) echo "something"
to:
-score) echo "something"