formulahendry / formulahendry/vscode-code-runner

[Bug] "Run In Terminal" on Linux allows expansions

Open
#772 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
TypeScript
Stars
2.4k
Forks
351
PR merge metrics
No merged PRs in 30d

Description

- VS Code Version: 1.55.2 [3c4e3df9e89829dce27b7b5c24508306b151f30d] x64
- OS Version: Linux 5.11.11-100.fc32.x86_64
- Code Runner Version: v0.11.3

**Describe the bug**
"Run In Terminal" executes file on Linux with double quotes which allows expansions like _history expansion_ with "!" sign in example below. You can `set +H` to stop this behavior but using single quotes is better solution.

**To Reproduce**
Steps to reproduce the behavior:

1. Set setting **"code-runner.runInTerminal": true**
2. `echo "console.log('Test')" > '!file.js'`
3. Run the file '!file.js'

**Actual behavior**
```sh
$ cd "/path/to"
$ node "/path/to/!file.js"
bash: !file.js: event not found
```

**Expected behavior**
File should run like with `node '/path/to/!file.js'`

Contributor guide

No contributing guide indexed for this repository

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.