From 6d619cccef2eeaab689ce0adac3dc839a8efd26e Mon Sep 17 00:00:00 2001 From: Antony Kellermann Date: Thu, 21 Jan 2021 18:24:15 -0500 Subject: [PATCH] Fix some unescaped shell colors. --- share/cht.sh.txt | 2 +- tests/results/8 | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/share/cht.sh.txt b/share/cht.sh.txt index bebc1af..f9ab95c 100755 --- a/share/cht.sh.txt +++ b/share/cht.sh.txt @@ -692,7 +692,7 @@ cmd_stealth() { past=$current current_text="$(echo $current | tr -c '[a-zA-Z0-9]' ' ')" if [ "$(echo "$current_text" | wc -w)" -gt "$STEALTH_MAX_SELECTION_LENGTH" ]; then - echo "\033[0;31mstealth:\033[0m selection length is longer than $STEALTH_MAX_SELECTION_LENGTH words; ignoring" + printf "\033[0;31mstealth:\033[0m selection length is longer than $STEALTH_MAX_SELECTION_LENGTH words; ignoring\n" continue else printf "\n\033[0;31mstealth: \033[7m $current_text\033[0m\n" diff --git a/tests/results/8 b/tests/results/8 index bebc1af..f9ab95c 100644 --- a/tests/results/8 +++ b/tests/results/8 @@ -692,7 +692,7 @@ cmd_stealth() { past=$current current_text="$(echo $current | tr -c '[a-zA-Z0-9]' ' ')" if [ "$(echo "$current_text" | wc -w)" -gt "$STEALTH_MAX_SELECTION_LENGTH" ]; then - echo "\033[0;31mstealth:\033[0m selection length is longer than $STEALTH_MAX_SELECTION_LENGTH words; ignoring" + printf "\033[0;31mstealth:\033[0m selection length is longer than $STEALTH_MAX_SELECTION_LENGTH words; ignoring\n" continue else printf "\n\033[0;31mstealth: \033[7m $current_text\033[0m\n"