aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTommy <tommy@themorfords.com>2021-07-21 15:55:15 -0700
committerTommy <tommy@themorfords.com>2021-07-21 15:55:15 -0700
commitf312940937ec250b6fe09dc80191bccdbefe9ef1 (patch)
tree8b1e44ce7ab93ea83fd854ca36e1deff6f67dde6
parent98a262615c2139f6260c435a7f16505d05fae7aa (diff)
downloadpure-sh-bible-f312940937ec250b6fe09dc80191bccdbefe9ef1.tar.gz
pure-sh-bible-f312940937ec250b6fe09dc80191bccdbefe9ef1.zip
Fix comment
-rw-r--r--README.md2
1 files changed, 1 insertions, 1 deletions
diff --git a/README.md b/README.md
index b7b9461..8032be5 100644
--- a/README.md
+++ b/README.md
@@ -144,7 +144,7 @@ trim_string() {
# Remove all trailing white-space.
# '${trim##*[![:space:]]}': Strip everything but trailing white-space.
- # '${trim#${XXX}}': Remove the white-space from the end of the string.
+ # '${trim%${XXX}}': Remove the white-space from the end of the string.
trim=${trim%${trim##*[![:space:]]}}
printf '%s\n' "$trim"