mirror of
https://github.com/microsoft/vscode.git
synced 2026-05-08 17:19:48 +01:00
Merge pull request #157535 from microsoft/tyriar/157524
Use %s to format % chars instead of sed to sanitize
This commit is contained in:
@@ -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() {
|
||||
|
||||
Reference in New Issue
Block a user