diff --git a/src/scripts/terminal-helper b/src/scripts/terminal-helper index 27f3e938..e486208d 100755 --- a/src/scripts/terminal-helper +++ b/src/scripts/terminal-helper @@ -41,7 +41,7 @@ done shift $((OPTIND - 1)) file="$(mktemp)" -echo "$1" >"$file" +printf '%s\n' "$1" >"$file" cmd="${LAUNCHER_CMD} \"$file\"" echo "$cmd" @@ -99,10 +99,10 @@ if [ -z "$terminal" ]; then exit 1 fi +printf 'rm -f -- %q\n' "$file" >>"$file" eval "${terminals[${terminal}]}" 2>/dev/null || { if [[ "$terminal" != "kgx" ]]; then rm "$file" exit 2 fi } -rm "$file"