Where does the bug appear (feature/product)?
Cursor IDE
Describe the Bug
Shell commands executed through Cursor’s terminal tool are failing with syntax errors related to bash evaluation, even when using clean environments.
Error Details
Error Message
--: eval: line 17: unexpected EOF while looking for matching `)'
--: eval: line 18: syntax error: unexpected end of file
--: line 1: dump_bash_state: command not found
Reproduction Steps
- Execute any command through Cursor’s
run_terminal_cmdtool - Error occurs regardless of command complexity
- Error persists even with:
env -i /bin/bash -c 'echo "test"'sh -c 'echo "test"'- Simple commands like
docker --version
Investigation Results
- User’s
~/.bashrcis syntactically correct (no issues found) - Error occurs even when bypassing user’s bash configuration
- Error suggests issue with Cursor’s shell wrapper/execution environment
- The
dump_bash_statecommand is not defined in any user configuration files
Expected Behavior
Commands should execute normally through Cursor’s terminal integration.
Actual Behavior
All commands fail immediately with the above error messages.
Files Checked
/home/ubuntu/.bashrc- No syntax errors found/home/ubuntu/.bash_profile- Standard configuration/etc/bash.bashrc- Standard system configuration- No references to
dump_bash_statefound in user or system configs
Suggested Fix
The issue appears to be in Cursor’s shell execution wrapper, not in user configuration. The dump_bash_state function or command appears to be referenced but not properly defined or loaded.
Steps to Reproduce
This is my Cursor version:
Version: 2.0.54
VSCode Version: 1.99.3
Commit: 7a31bffd467aa2d9adfda69076eb924e9062cb20
Date: 2025-11-03T22:40:44.657Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 23.6.0
Operating System
MacOS
Current Cursor Version (Menu → About Cursor → Copy)
Version: 2.0.54
VSCode Version: 1.99.3
Commit: 7a31bffd467aa2d9adfda69076eb924e9062cb20
Date: 2025-11-03T22:40:44.657Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 23.6.0
Does this stop you from using Cursor
Sometimes - I can sometimes use Cursor