The normally published syntax for a case statement:
case $variable in pattern1) statement1;; pattern2) statement2;; . . . *) default statement;; # executed if no match above esac
If the ;; operator is used, no subsequent matches are attempted after the first pattern match.
Using ;& in place of ;; causes execution to continue with the statement associated with the next pattern
Using ;;& in place of ;; causes the shell to test the next pattern if any, and execute any associated statement on a successful match
![]() |
This site best viewed with a browser |
| Warning: This is a Debian centric site and MAY contain peanuts. | |
| Many thanks to Debra Lynn and Ian Murdock for making Debian possible | |
| First created Aug 12, 2011 ~ Last revised August 12, 2011 |