From 07455024c72c3aa0bacf8338b82d3a0b8a96a9b0 Mon Sep 17 00:00:00 2001 From: EuAndreh Date: Thu, 4 Jan 2024 11:23:50 -0300 Subject: re "s|echo \"\\\$|printf '%s\\\n' \"\$|g" Replace all cases where `echo` was given a variable as its first argument, even on cases where we always know what the variable's content look like. --- bin/msg | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/msg') diff --git a/bin/msg b/bin/msg index 80491be..486eeda 100755 --- a/bin/msg +++ b/bin/msg @@ -138,7 +138,7 @@ if [ "$SOUND" = true ]; then fi if [ "$SPEAK" = true ]; then eval "$(assert-arg -- "$MESSAGE" '-S MESSAGE')" - echo "$MESSAGE" | speak -v pt-BR & + printf '%s\n' "$MESSAGE" | speak -v pt-BR & fi if [ "$MAIL" = true ]; then eval "$(assert-arg -- "$MESSAGE" '-m MESSAGE')" -- cgit v1.2.3