SC2194
Joachim Ansorg edited this page Nov 12, 2021
·
2 revisions
This word is constant. Did you forget the $ on a variable?
Problematic code:
case foo in
bar) echo "Match"
esacCorrect code:
case $foo in
bar) echo "Match"
esacRationale:
You are using a case statement to compare a literal word.
You most likely wanted to treat this word as a $variable or $(command) instead.
Exceptions:
None