From 7e0ede1a16f94af74549582534362614dbeb3cba Mon Sep 17 00:00:00 2001 From: zlago <104219492+zlago@users.noreply.github.com> Date: Fri, 21 Mar 2025 17:31:37 +0100 Subject: [PATCH] change unportable `echo` in the linux/macos debug launcher script `-n` and `-e` are not guaranteed to be supported by posix `echo` --- platform/linuxbsd/export/export_plugin.cpp | 2 +- platform/macos/export/export_plugin.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/platform/linuxbsd/export/export_plugin.cpp b/platform/linuxbsd/export/export_plugin.cpp index efa0140204..e63193e0c8 100644 --- a/platform/linuxbsd/export/export_plugin.cpp +++ b/platform/linuxbsd/export/export_plugin.cpp @@ -50,7 +50,7 @@ Error EditorExportPlatformLinuxBSD::_export_debug_script(const Refstore_line("#!/bin/sh"); - f->store_line("echo -ne '\\033c\\033]0;" + p_app_name + "\\a'"); + f->store_line("printf '\\033c\\033]0;%s\\a' " + p_app_name); f->store_line("base_path=\"$(dirname \"$(realpath \"$0\")\")\""); f->store_line("\"$base_path/" + p_pkg_name + "\" \"$@\""); diff --git a/platform/macos/export/export_plugin.cpp b/platform/macos/export/export_plugin.cpp index c478644c23..d3d3cf1b35 100644 --- a/platform/macos/export/export_plugin.cpp +++ b/platform/macos/export/export_plugin.cpp @@ -1500,7 +1500,7 @@ Error EditorExportPlatformMacOS::_export_debug_script(const Refstore_line("#!/bin/sh"); - f->store_line("echo -ne '\\033c\\033]0;" + p_app_name + "\\a'"); + f->store_line("printf '\\033c\\033]0;%s\\a' " + p_app_name); f->store_line(""); f->store_line("function app_realpath() {"); f->store_line(" SOURCE=$1");