Setting "terminal.integrated.inheritEnv": false
clobbers $PATH
in remote SSH shell
#6886
Labels
*duplicate
Issue identified as a duplicate of another issue(s)
remote
Issues in the code server support
ssh
Issue in vscode-remote SSH
under-discussion
Issue is under discussion for relevance, priority, approach
upstream
Issue identified as 'upstream' component related (exists outside of VS Code Remote)
Issue Type: Bug
My shell on both macOS and Linux are set to
zsh
. When I set"terminal.integrated.inheritEnv": false
on my macOS system, opening the integrated terminal using the Remote SSH extension mangles the$PATH
of the remote terminal (e.g./bin
and/usr/bin
are not in$PATH
when they should be). The behavior I observed (and relied on) in the past was that the integrated terminal should have the same$PATH
and generally behave the same as if I manually SSH'd into the remote system. This old behavior returns if I set"terminal.integrated.inheritEnv": true
. I can reproduce this behavior with all other extensions disabled and with the default settings (with the exception of theinheritEnv
setting, of course).Extension version: 0.82.1
VS Code version: Code 1.68.1 (30d9c6cd9483b2cc586687151bcbcd635f373630, 2022-06-14T12:48:37.209Z)
OS version: Darwin arm64 21.5.0
Restricted Mode: No
Remote OS version: Linux x64 5.17.15-76051715-generic
System Info
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: enabled
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
A/B Experiments
The text was updated successfully, but these errors were encountered: