mirror of
https://github.com/dylanaraps/pure-sh-bible
synced 2024-04-26 19:20:41 +02:00
Merge pull request #42 from unah77/master
Fix comment to match associated code
This commit is contained in:
commit
26bc7e8d6c
|
@ -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"
|
||||
|
|
Loading…
Reference in a new issue