From: Yu Watanabe Date: Thu, 25 Sep 2025 17:16:17 +0000 (+0900) Subject: osc-context: fix typo: 8003 -> 3008 X-Git-Tag: v259-rc1~438 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b6288f6becf0e55da6de9ff55e824c2ada93f2c;p=thirdparty%2Fsystemd.git osc-context: fix typo: 8003 -> 3008 Follow-up for dadbb34919abd3fefeb5b8ccc9794da9398a2503 (v258). --- diff --git a/profile.d/80-systemd-osc-context.sh b/profile.d/80-systemd-osc-context.sh index ee37c2507a4..13f04994ce2 100644 --- a/profile.d/80-systemd-osc-context.sh +++ b/profile.d/80-systemd-osc-context.sh @@ -14,7 +14,7 @@ [ -n "${BASH_VERSION:-}" ] || return 0 __systemd_osc_context_escape() { - # Escape according to the OSC 8003 spec. Since this requires shelling out + # Escape according to the OSC 3008 spec. Since this requires shelling out # to 'sed' we'll only do it where it's strictly necessary, and skip it when # processing strings we are pretty sure we won't need it for, such as # uuids, id128, hostnames, usernames, since they all come with syntax @@ -33,11 +33,11 @@ __systemd_osc_context_precmdline() { # Close previous command if [ -n "${systemd_osc_context_cmd_id:-}" ]; then if [ "$systemd_exitstatus" -ge 127 ]; then - printf "\033]8003;end=%s;exit=interrupt;signal=%s\033\\" "$systemd_osc_context_cmd_id" $((systemd_exitstatus-127)) + printf "\033]3008;end=%s;exit=interrupt;signal=%s\033\\" "$systemd_osc_context_cmd_id" $((systemd_exitstatus-127)) elif [ "$systemd_exitstatus" -ne 0 ]; then - printf "\033]8003;end=%s;exit=failure;status=%s\033\\" "$systemd_osc_context_cmd_id" $((systemd_exitstatus)) + printf "\033]3008;end=%s;exit=failure;status=%s\033\\" "$systemd_osc_context_cmd_id" $((systemd_exitstatus)) else - printf "\033]8003;end=%s;exit=success\033\\" "$systemd_osc_context_cmd_id" + printf "\033]3008;end=%s;exit=success\033\\" "$systemd_osc_context_cmd_id" fi fi @@ -47,7 +47,7 @@ __systemd_osc_context_precmdline() { fi # Create or update the shell session - printf "\033]8003;start=%s%s;type=shell;cwd=%s\033\\" "$systemd_osc_context_shell_id" "$(__systemd_osc_context_common)" "$(__systemd_osc_context_escape "$PWD")" + printf "\033]3008;start=%s%s;type=shell;cwd=%s\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