So this is admittedly for university, but I can't find the answer anywhere, nor online, nor in the lecture notes.
I basically take a parameter, and have to search, if that is part of a longer string I have already stored:
if [ *$param* = $var ]
then
...
is the part in question. Now what is really weird for me, is that no matter if it says = or !=, the code nested under then never gets executed. I checked every other part of the code very thoroughly, and it all looks to be working fine.
Do you have any ideas what might cause this?