mirror of
https://github.com/dylanaraps/pure-sh-bible
synced 2024-05-03 22:23:13 +02:00
Merge pull request #4 from jan4843/patch-2
Fix confusing substring examples
This commit is contained in:
commit
9f252b5aa5
12
README.md
12
README.md
|
@ -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
|
||||
;;
|
||||
|
||||
*)
|
||||
|
|
Loading…
Reference in a new issue