Skip to main content

You are not logged in. Your edit will be placed in a queue until it is peer reviewed.

We welcome edits that make the post easier to understand and more valuable for readers. Because community members review edits, please try to make the post substantially better than how you found it, for example, by fixing grammar or adding additional resources and hyperlinks.

Required fields*

7
  • 1
    Does this help? Can bash case statements cascade? Commented Apr 3, 2020 at 0:46
  • Why not just use a series of ifs that's basically all a case statement is, just syntactic sugar to make a bunch of if or ifelse look nicer. Commented Apr 3, 2020 at 0:47
  • @steeldriver op doesn't seem to want fall through but rather multiple match Commented Apr 3, 2020 at 0:48
  • @user1794469 isn't that exactly what ;;& does? Commented Apr 3, 2020 at 0:50
  • @steeldriver it totally is. I wasn't aware that's how that worked in bash. Fall through generally works by simply going to the next statement, not but testing the nest case, in other languages anyway. Commented Apr 3, 2020 at 1:31