Skip to content

sudo is recognized as a shell #125923

@signed-log

Description

@signed-log

Issue Type: Bug

  • Open a SSH connection with the remote server having passwordless sudo (should be repro on normal sudo, but didn't try)
  • Run a sudo command (like package manager update...)

Excepted :

The shell name should stay bash

Happening :

Sudo is the name of the shell during the sudo command execution

VS Code version: Code - Insiders 1.57.0-insider (387e2f3, 2021-06-04T05:13:44.983Z)
OS version: Linux x64 5.12.4-2-default
Remote OS version: Linux x64 5.4.0-74-generic
Remote OS version: Linux x64 5.4.0-74-generic
Remote OS version: Linux x64 5.4.0-74-generic

System Info
Item Value
CPUs AMD Ryzen 7 3700X 8-Core Processor (16 x 4071)
GPU Status 2d_canvas: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
opengl: enabled_on
rasterization: disabled_software
skia_renderer: enabled_on
video_decode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
Load (avg) 0, 0, 0
Memory (System) 31.28GB (14.57GB free)
Process Argv --unity-launch --crash-reporter-id 637b518b-0295-4514-8b73-bb3d14e2cb16
Screen Reader no
VM 0%
DESKTOP_SESSION cinnamon
XDG_CURRENT_DESKTOP X-Cinnamon
XDG_SESSION_DESKTOP cinnamon
XDG_SESSION_TYPE x11
Item Value
Remote SSH: storcase
OS Linux x64 5.4.0-74-generic
CPUs Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz (8 x 2596)
Memory (System) 15.94GB (7.31GB free)
VM 0%
Item Value
Remote SSH: storcase
OS Linux x64 5.4.0-74-generic
CPUs Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz (8 x 2596)
Memory (System) 15.94GB (7.31GB free)
VM 0%
Item Value
Remote SSH: storcase
OS Linux x64 5.4.0-74-generic
CPUs Intel(R) Xeon(R) CPU E5-2690 v3 @ 2.60GHz (8 x 2596)
Memory (System) 15.94GB (7.31GB free)
VM 0%
Extensions (72)
Extension Author (truncated) Version
better-comments aar 2.1.0
html-snippets abu 0.2.1
vscode-javascript-snippet-pack aka 0.1.6
project-manager ale 12.1.0
ACF-Snippet ant 1.9.0
bat-snippets bat 0.2.0
Nix bbe 1.0.1
mermaid-markdown-syntax-highlighting bpr 1.2.2
woocommerce cla 1.1.0
wpcs-whitelist-flags cla 1.1.0
bracket-pair-colorizer-2 Coe 0.2.0
vscode-gitignore-syntax dun 0.1.2
vscode-great-icons emm 2.1.77
vscode-firefox-debug fir 2.9.4
auto-close-tag for 0.5.10
auto-rename-tag for 0.1.6
scs-script Fra 0.0.2
output-colorizer IBM 0.1.2
vscode-requirements jan 0.1.0
better-cpp-syntax jef 1.15.6
better-dockerfile-syntax jef 1.0.2
vscode-todo-highlight jgc 2.0.2
ligatures-limited ksh 1.4.1
vscord Leo 3.2.3
kconfig luv 1.0.3
autoconf mae 0.1.0
VS-code-vagrantfile mar 0.0.7
dotenv mik 1.0.1
remote-containers ms- 0.183.0
remote-ssh-edit-nightly ms- 2021.5.29700
remote-ssh-nightly ms- 2021.5.29700
remote-wsl ms- 0.56.4
vscode-remote-extensionpack ms- 0.21.0
js-debug-companion ms- 1.0.13
debugger-for-chrome msj 4.12.12
JavaScriptSnippets nat 0.2.0
vscode-javascript-snippet Nic 0.1.2
colorful-comments Par 0.6.2
material-icon-theme PKi 4.7.0
arduino-snippets ron 1.0.2
html5-boilerplate sid 1.1.1
svg-preview Sim 2.8.3
open-in-browser tec 2.0.0
umlet the 1.0.4
latex-support tor 3.6.0
python-extended-snippets tus 0.0.1
errorlens use 3.2.7
highlight-matching-tag vin 0.10.0
vscode-icons vsc 11.4.0
jinja who 0.0.8
vscode-nginx wil 0.7.2
vscode-ruby win 0.28.0
vsc-meta-snippet wmo 0.1.1
wordpress-toolbox wor 1.3.9
JavaScriptSnippets xab 1.8.0
vscode-nginx-conf ahm 0.1.3
vscode-django bat 1.6.0
python-extension-pack don 1.6.0
pipenv-scripts Fed 1.0.3
Python-autopep8 him 1.0.2
vsc-python-indent Kev 1.14.2
MagicPython mag 1.1.0
python-path mge 0.0.11
vscode-docker ms- 1.13.0
python ms- 2021.6.919620059-dev
vscode-pylance ms- 2021.6.2-pre.1
jupyter ms- 2021.6.999230701
remove-comments pli 1.2.2
vscode-yaml red 0.19.2
shellcheck tim 0.14.1
vscodeintellicode Vis 1.2.14
jinja who 0.0.8

(13 theme extensions excluded)

Metadata

Metadata

Assignees

Labels

*as-designedDescribed behavior is as designed

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions