Replace expr use with parameter substitution. - annna - Annna the nice friendly… | |
git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws6… | |
Log | |
Files | |
Refs | |
Tags | |
README | |
--- | |
commit 82930fb453e809f9adb6ca7f9d2a5a50ca71d99f | |
parent 7fe1b40c24d872d706c4eb52302fc5c91b347406 | |
Author: eidolon <[email protected]> | |
Date: Sat, 26 Aug 2023 00:03:22 -0400 | |
Replace expr use with parameter substitution. | |
Signed-off-by: Annna Robert-Houdin <[email protected]> | |
Diffstat: | |
M annna-message-common | 2 +- | |
1 file changed, 1 insertion(+), 1 deletion(-) | |
--- | |
diff --git a/annna-message-common b/annna-message-common | |
@@ -296,7 +296,7 @@ case "${text}" in | |
word="$(printf "%s\n" "${text}" | cut -c 16-)" | |
case "$word" in | |
*\?) | |
- word="$(printf "%s\n" "${word}" | cut -c -"$(($(expr length "$… | |
+ word="$(printf "%s\n" "${word}" | cut -c -"$((${#word} - 1))")" | |
;; | |
esac | |