aboutsummaryrefslogtreecommitdiff
path: root/bin/msg
diff options
context:
space:
mode:
authorEuAndreh <eu@euandre.org>2024-01-04 11:23:50 -0300
committerEuAndreh <eu@euandre.org>2024-01-04 11:23:55 -0300
commit07455024c72c3aa0bacf8338b82d3a0b8a96a9b0 (patch)
treec3e7074928e2783d9e97001f45e2a3522d52ba76 /bin/msg
parentetc/sh/rc: Fix "c" alias to use the correct command (diff)
downloaddotfiles-07455024c72c3aa0bacf8338b82d3a0b8a96a9b0.tar.gz
dotfiles-07455024c72c3aa0bacf8338b82d3a0b8a96a9b0.tar.xz
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.
Diffstat (limited to 'bin/msg')
-rwxr-xr-xbin/msg2
1 files changed, 1 insertions, 1 deletions
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')"