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/tmpname | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'bin/tmpname') diff --git a/bin/tmpname b/bin/tmpname index 5b732a5..f16816e 100755 --- a/bin/tmpname +++ b/bin/tmpname @@ -64,4 +64,4 @@ while getopts 'h' flag; do done shift $((OPTIND - 1)) -echo "${TMPDIR:-/tmp}/uuid-tmpname with spaces.$(uuid)" +printf '%s\n' "${TMPDIR:-/tmp}/uuid-tmpname with spaces.$(uuid)" -- cgit v1.2.3