bash: extend switch case example