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
This commit is contained in:
Chris Lindee
2026-02-16 03:15:53 -06:00
parent b88ab1c2dd
commit 6a46846871
+1 -1
View File
@@ -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() {