DEV Community

Discussion on: Shellscripting: Conditional Execution

Collapse
 
polyluxus profile image
Martin Schwarzer

As far as I remember, case does not use regex, but globbing. Similar, but different enough to make you scratch your head when something is not working.
If you need regex, nested if with =~ is the way to go.