aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJan Vitturi <vitturi.jan@gmail.com>2019-09-20 15:48:25 +0200
committerGitHub <noreply@github.com>2019-09-20 15:48:25 +0200
commitd5a96302f629b526f94745e6f4b431b02f7b6e4e (patch)
treeeb82922211d973b2bc598cfa9a7de3dd00c445aa
parent4011d6482b668433eb6edd7f5993f650703e059d (diff)
downloadpure-sh-bible-d5a96302f629b526f94745e6f4b431b02f7b6e4e.tar.gz
pure-sh-bible-d5a96302f629b526f94745e6f4b431b02f7b6e4e.zip
Fix confusing substring examples
The placeholders do not work since `sub_string2` contains `sub_string` and give the impression of fall-through statements.
-rw-r--r--README.md12
1 files changed, 6 insertions, 6 deletions
diff --git a/README.md b/README.md
index 42ba1f3..a91f9c3 100644
--- a/README.md
+++ b/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
;;
*)