I always use if for this type of stuff, and I haven't really thought of it, but lets say something simple like this:case $1 intest)echo test;;test2)echo test;;test3echo test3esacvs.if [[ $1 == test ]]thenecho testelif [[ $1 == test2 ]]thenecho test2elif [[ $1 == test3 ]]thenecho test3fiWhat are the bigger differences in this case? Is any of them objectively better for another task?
What is the bigger difference in this case when using case or if?
bash;case