Skip to content

shellIntegration-bash script bug: command: __vsc_prompt_cmd_original not found. #256038

@Stock-Owl

Description

@Stock-Owl

Does this issue occur when all extensions are disabled?: Yes

  • VS Code Version: 1.102.0
Version: 1.102.0
Commit: cb0c47c0cfaad0757385834bd89d410c78a856c0
Date: 2025-07-09T22:10:34.600Z
Electron: 35.6.0
ElectronBuildId: 11847422
Chromium: 134.0.6998.205
Node.js: 22.15.1
V8: 13.4.114.21-electron.0
OS: Windows_NT x64 10.0.26100
  • OS Version: Windows 11 24H2 (Windows_NT x64 26100.4061)

When launching a subshell in a unix-like shell (in my case, MSYS2 BASH in such a way, that $SHLVL is incremented),
the shell gives an error like:
bash: command: __vsc_prompt_cmd_original not found
Updated to the altest version and turned off all extensions to test too.

Steps to Reproduce:

  1. Launch an instance of a unix shell that uses an rc file to load configs (Create New Terminal With Profile)
  2. Launch another instance inside of the previous shell (in a way that $SHLVL is incremented)
  3. There will be an error message like command: __vsc_prompt_cmd_original not found

Thanks in advance

Metadata

Metadata

Assignees

Labels

info-neededIssue requires more information from posterterminal-shell-bashAn issue in the terminal specific to bash, including shell integrationterminal-shell-integrationShell integration infrastructure, command decorations, etc.

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions