RosettaCodeData/Task/Conditional-structures/Friendly-interactive-shell/conditional-structures-2.fish

13 lines
268 B
Fish

switch actually
case az
echo The word is "az".
case 'a*z'
echo Begins with a and ends with z.
case 'a*'
echo Begins with a.
case 'z*'
echo Ends with z.
case '*'
echo Neither begins with a or ends with z.
end