diff options
author | Jan Vitturi <vitturi.jan@gmail.com> | 2019-09-20 15:48:25 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-09-20 15:48:25 +0200 |
commit | d5a96302f629b526f94745e6f4b431b02f7b6e4e (patch) | |
tree | eb82922211d973b2bc598cfa9a7de3dd00c445aa | |
parent | 4011d6482b668433eb6edd7f5993f650703e059d (diff) | |
download | pure-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.md | 12 |
1 files changed, 6 insertions, 6 deletions
@@ -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 ;; *) |