From 6a46846871a5af20580d62d7f3181b3f5ac91eb2 Mon Sep 17 00:00:00 2001 From: Chris Lindee Date: Mon, 16 Feb 2026 00:08:31 -0600 Subject: [PATCH] profile/systemd-osc-context: Bring escape up to spec UAPI.15 requires: * `\` to be replaced with `\x5c` * `;` to be replaced with `\x3b` References: [0] https://uapi-group.org/specifications/specs/osc_context/#general-syntax --- profile.d/80-systemd-osc-context.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/profile.d/80-systemd-osc-context.sh b/profile.d/80-systemd-osc-context.sh index df7f93afa3..dfed466404 100644 --- a/profile.d/80-systemd-osc-context.sh +++ b/profile.d/80-systemd-osc-context.sh @@ -28,7 +28,7 @@ __systemd_osc_context_escape() { # uuids, id128, hostnames, usernames, since they all come with syntax # requirements that exclude \ and ; anyway. This hence primarily is about # escaping the current working directory. - echo "$1" | sed -e 's/\\/\\x5x/g' -e 's/;/\\x3b/g' + echo "$1" | sed -e 's/\\/\\x5c/g' -e 's/;/\\x3b/g' } __systemd_osc_context_common() {