Merge pull request #157535 from microsoft/tyriar/157524

Use %s to format % chars instead of sed to sanitize
This commit is contained in:
Daniel Imms
2022-08-08 11:50:05 -07:00
committed by GitHub
2 changed files with 2 additions and 3 deletions
@@ -59,8 +59,7 @@ __vsc_update_cwd() {
__vsc_command_output_start() {
builtin printf "\033]633;C\007"
# Send command line, escaping printf format chars %
builtin printf "\033]633;E;$(echo $__vsc_current_command | sed s/%/%%/g)\007"
builtin printf "\033]633;E;%s\007" "$__vsc_current_command"
}
__vsc_continuation_start() {
@@ -51,7 +51,7 @@ __vsc_update_cwd() {
__vsc_command_output_start() {
builtin printf "\033]633;C\007"
# Send command line, escaping printf format chars %
builtin printf "\033]633;E;$(echo $__vsc_current_command | sed s/%/%%/g)\007"
builtin printf "\033]633;E;%s\007" "$__vsc_current_command"
}
__vsc_continuation_start() {