Skip to content

Terminal mangles files dropped into the terminal if they contain quotes. #249883

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
lgarron opened this issue May 27, 2025 · 0 comments
Open

Terminal mangles files dropped into the terminal if they contain quotes. #249883

lgarron opened this issue May 27, 2025 · 0 comments
Assignees

Comments

@lgarron
Copy link

lgarron commented May 27, 2025

Type: Bug

  1. Create a file named Bram's Hinged Cube v0.2.3.scad
  2. Drag and drop the file into the VS Code terminal.

Expected: the file name that is added to the current command prompt is a valid quoted or escaped version of the dropped file.

Observed: the file name is quoted but quotes are stripped.

In the best case, this results in an immediate error from whatever command the user meant to run.

In the worst case, this can refer to a different file and can have mild to catastrophic consequences depending on the assumptions of the user and/or the program they are running.

VS Code version: Code 1.100.2 (848b80a, 2025-05-14T21:47:40.416Z)
OS version: Darwin arm64 24.5.0
Modes:

System Info
Item Value
CPUs Apple M1 Max (10 x 2400)
GPU Status 2d_canvas: enabled
canvas_oop_rasterization: enabled_on
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: enabled
webgl: enabled
webgl2: enabled
webgpu: enabled
webnn: disabled_off
Load (avg) 13, 12, 11
Memory (System) 64.00GB (11.15GB free)
Process Argv --disable-extensions --crash-reporter-id 88d577d0-2e7d-4290-872a-7cef906b73f7
Screen Reader no
VM 0%
Extensions disabled
A/B Experiments
vsliv368cf:30146710
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscod805cf:30301675
binariesv615:30325510
c4g48928:30535728
azure-dev_surveyone:30548225
vscrpc:30673769
962ge761:30959799
h48ei257:31000450
pythontbext0:30879054
cppperfnew:31000557
dwnewjupyter:31046869
pythonrstrctxt:31112756
nativeloc1:31192215
5fd0e150:31155592
dwcopilot:31170013
6074i472:31201624
dwoutputs:31242946
customenabled:31248079
hdaa2157:31222309
copilot_t_ci:31222730
e5gg6876:31282496
pythoneinst12:31285622
bgtreat:31268568
4gafe986:31271826
c7cif404:31314491
996jf627:31283433
pythonrdcb7:31303018
usemplatestapi:31297334
0aa6g176:31307128
7bj51361:31289155
747dc170:31275177
pylancecolor:31314202
aj953862:31281341
generatesymbolt:31295002
convertfstringf:31295003
gendocf:31295004

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants