aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorblack <dylan.araps@gmail.com>2019-09-20 16:56:18 +0300
committerGitHub <noreply@github.com>2019-09-20 16:56:18 +0300
commit9f252b5aa58224ad21a26db4c13287d9cd471667 (patch)
treeeb82922211d973b2bc598cfa9a7de3dd00c445aa
parent4011d6482b668433eb6edd7f5993f650703e059d (diff)
parentd5a96302f629b526f94745e6f4b431b02f7b6e4e (diff)
downloadpure-sh-bible-9f252b5aa58224ad21a26db4c13287d9cd471667.tar.gz
pure-sh-bible-9f252b5aa58224ad21a26db4c13287d9cd471667.zip
Merge pull request #4 from jan4843/patch-2
Fix confusing substring examples
-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
;;
*)