From bf9f62a814c9860d53bfb71d6e5b5d23a82c6922 Mon Sep 17 00:00:00 2001 From: b3nj4m1n Date: Sat, 14 May 2022 12:47:44 +0200 Subject: [PATCH] Use printf in apply_shell_expansion --- xdg-ninja.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/xdg-ninja.sh b/xdg-ninja.sh index f173a57..59d9dc4 100755 --- a/xdg-ninja.sh +++ b/xdg-ninja.sh @@ -76,7 +76,7 @@ printf "\n" apply_shell_expansion() { data="$1" delimiter="__apply_shell_expansion_delimiter__" - command="cat <<$delimiter"$'\n'"$data"$'\n'"$delimiter" + command=$(printf "cat <<%s\n%s\n%s" "$delimiter" "$data" "$delimiter") eval "$command" } -- 2.47.3