Skip to content

Commit 0da5cba

Browse files
authored
Merge pull request chubin#277 from aokellermann/bug/FixShEscape
Fix some unescaped shell colors
2 parents 8af942e + 6d619cc commit 0da5cba

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

share/cht.sh.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ cmd_stealth() {
692692
past=$current
693693
current_text="$(echo $current | tr -c '[a-zA-Z0-9]' ' ')"
694694
if [ "$(echo "$current_text" | wc -w)" -gt "$STEALTH_MAX_SELECTION_LENGTH" ]; then
695-
echo "\033[0;31mstealth:\033[0m selection length is longer than $STEALTH_MAX_SELECTION_LENGTH words; ignoring"
695+
printf "\033[0;31mstealth:\033[0m selection length is longer than $STEALTH_MAX_SELECTION_LENGTH words; ignoring\n"
696696
continue
697697
else
698698
printf "\n\033[0;31mstealth: \033[7m $current_text\033[0m\n"

tests/results/8

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -692,7 +692,7 @@ cmd_stealth() {
692692
past=$current
693693
current_text="$(echo $current | tr -c '[a-zA-Z0-9]' ' ')"
694694
if [ "$(echo "$current_text" | wc -w)" -gt "$STEALTH_MAX_SELECTION_LENGTH" ]; then
695-
echo "\033[0;31mstealth:\033[0m selection length is longer than $STEALTH_MAX_SELECTION_LENGTH words; ignoring"
695+
printf "\033[0;31mstealth:\033[0m selection length is longer than $STEALTH_MAX_SELECTION_LENGTH words; ignoring\n"
696696
continue
697697
else
698698
printf "\n\033[0;31mstealth: \033[7m $current_text\033[0m\n"

0 commit comments

Comments
 (0)