Fix confusing substring examples

The placeholders do not work since `sub_string2` contains `sub_string` and give the impression of fall-through statements.
This commit is contained in:
Jan Vitturi 2019-09-20 15:48:25 +02:00 committed by GitHub
parent 4011d6482b
commit d5a96302f6
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -193,12 +193,12 @@ John Black is my name.
```shell
case $var in
*sub_string*)
*sub_string1*)
# Do stuff
;;
*sub_string2*)
# Do more stuff
# Do other stuff
;;
*)
@ -213,12 +213,12 @@ esac
```shell
case $var in
sub_string*)
sub_string1*)
# Do stuff
;;
sub_string2*)
# Do more stuff
# Do other stuff
;;
*)
@ -233,12 +233,12 @@ esac
```shell
case $var in
*sub_string)
*sub_string1)
# Do stuff
;;
*sub_string2)
# Do more stuff
# Do other stuff
;;
*)