From cb3bedf527279d3395ffa906be0e01237a3a702f Mon Sep 17 00:00:00 2001 From: Igor Velkov <325961+iav@users.noreply.github.com> Date: Mon, 16 Feb 2026 19:34:03 +0200 Subject: [PATCH] (#9400 P3b) patching: add missing -r flag to read Other read calls in the same file already use -r. Without -r, backslashes in user input are interpreted as escape characters. Co-Authored-By: Claude Opus 4.6 --- lib/functions/compilation/patch/patching.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/functions/compilation/patch/patching.sh b/lib/functions/compilation/patch/patching.sh index 5cc1ffc7fa..ffd90e956a 100644 --- a/lib/functions/compilation/patch/patching.sh +++ b/lib/functions/compilation/patch/patching.sh @@ -214,7 +214,7 @@ function userpatch_create() { # If Git is configured, create proper patch and ask for a name display_alert "Add / change patch name" "${patch_commit_message}" "wrn" - read -e -p "Patch Subject: " -i "${patch_commit_message}" patch_commit_message + read -r -e -p "Patch Subject: " -i "${patch_commit_message}" patch_commit_message [[ -z "${patch_commit_message}" ]] && patch_commit_message="Patching something unknown and mysterious" run_host_command_logged git "${common_git_params[@]}" commit -s -m "'${patch_commit_message}'" run_host_command_logged git "${common_git_params[@]}" format-patch "${formatpatch_params[@]}" ">" "${patch}"