Replace expr use with parameter substitution. - annna - Annna the nice friendly bot. HTML git clone git://bitreich.org/annna/ git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/annna/ DIR Log DIR Files DIR Refs DIR Tags DIR README --- DIR commit 82930fb453e809f9adb6ca7f9d2a5a50ca71d99f DIR parent 7fe1b40c24d872d706c4eb52302fc5c91b347406 HTML Author: eidolon <me@nadezh.da> Date: Sat, 26 Aug 2023 00:03:22 -0400 Replace expr use with parameter substitution. Signed-off-by: Annna Robert-Houdin <annna@bitreich.org> Diffstat: M annna-message-common | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- DIR 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}") - 1))")" + word="$(printf "%s\n" "${word}" | cut -c -"$((${#word} - 1))")" ;; esac