From: Rasmus Villemoes Date: Tue, 21 Jul 2026 08:25:56 +0000 (+0200) Subject: profile/systemd-osc-context: emit type= field first X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ac4c3e42906e235674ac4a36327345dd092d176f;p=thirdparty%2Fsystemd.git profile/systemd-osc-context: emit type= field first Not because it is required by the specification, but it will make the following patches simpler. Also, the fact that the spec explicitly does call out that type= can appear at the end or in the middle suggests that people would normally expect it to appear at the beginning. --- diff --git a/profile.d/80-systemd-osc-context.sh b/profile.d/80-systemd-osc-context.sh index 4cfecfed269..8eff01cee7d 100644 --- a/profile.d/80-systemd-osc-context.sh +++ b/profile.d/80-systemd-osc-context.sh @@ -75,7 +75,7 @@ __systemd_osc_context_precmdline() { fi # Create or update the shell session - printf "\033]3008;start=%.64s%s;type=shell;cwd=%.255s\033\\" "$systemd_osc_context_shell_id" "$(__systemd_osc_context_common)" "$(__systemd_osc_context_escape "$PWD")" + printf "\033]3008;start=%.64s;type=shell%s;cwd=%.255s\033\\" "$systemd_osc_context_shell_id" "$(__systemd_osc_context_common)" "$(__systemd_osc_context_escape "$PWD")" # Prepare cmd id for next command read -r systemd_osc_context_cmd_id