Repository: vscode
Issue: task system error in wrapping in quotes some args without spaces 
Labels: bug,tasks

Type: <b>Bug</b>

I'm using this `tasks.json` file
```
{
    // See https://go.microsoft.com/fwlink/?LinkId=733558
    // for the documentation about the tasks.json format
    "version": "2.0.0",
    "tasks": [
        {
            "label": "C/C++: g++ Compile and run active file",
            "type": "cppbuild",
            "command": "g++",
            "args": [
                "${file}",
                "-o",
                "${fileDirname}\\run.exe",
                "&&",
                "run.exe",
                "<",
                "input.txt",
                ">",
                "output.txt",
            ],
            "group": {
                "kind": "build",
                "isDefault": true
            },
        }
    ]
}
```
And building now produces the following:
```
 *  Executing task: C/C++: g++ Compile and run active file 

Starting build...
g++ "C:\Users\laith\Desktop\dev\CP\main.cpp" -o "C:\Users\laith\Desktop\dev\CP\run.exe" "&&" run.exe < input.txt > output.txt
g++: error: &&: No such file or directory
g++: error: run.exe: No such file or directory

Build finished with error(s).

 *  The terminal process failed to launch (exit code: -1). 
 *  Terminal will be reused by tasks, press any key to close it. 
```

This is a new behavior as it used to not wrap the `&&` with quotes and worked just fine.

VS Code version: Code 1.87.0 (019f4d1419fbc8219a181fab7892ebccf7ee29a2, 2024-02-27T23:41:44.469Z)
OS version: Windows_NT x64 10.0.22621
Modes:

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|AMD Ryzen 9 6900HS with Radeon Graphics         (16 x 3294)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: enabled_on<br>direct_rendering_display_compositor: disabled_off_ok<br>gpu_compositing: enabled<br>multiple_raster_threads: enabled_on<br>opengl: enabled_on<br>rasterization: enabled<br>raw_draw: disabled_off_ok<br>skia_graphite: disabled_off<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: enabled|
|Load (avg)|undefined|
|Memory (System)|39.23GB (26.64GB free)|
|Process Argv|--crash-reporter-id 9745d158-199b-42a6-8b25-fe12f8b2cc84|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (30)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-postgres|cko|1.4.3
vscode-eslint|dba|2.4.4
gitlens|eam|14.8.2
dotnet-test-explorer|for|0.7.8
copilot|Git|1.171.0
copilot-chat|Git|0.13.0
docomment|k--|1.0.0
dotnet|leo|1.3.0
vscode-docker|ms-|1.29.0
csdevkit|ms-|1.3.10
csharp|ms-|2.18.16
vscode-dotnet-runtime|ms-|2.0.2
vscodeintellicode-csharp|ms-|0.1.26
vscode-postgresql|ms-|0.3.0
black-formatter|ms-|2024.0.1
debugpy|ms-|2024.2.0
python|ms-|2024.2.1
vscode-pylance|ms-|2024.2.2
remote-containers|ms-|0.348.0
remote-ssh|ms-|0.109.0
remote-ssh-edit|ms-|0.86.0
cpptools|ms-|1.19.4
remote-explorer|ms-|0.4.3
vscode-xml|red|0.26.1
vscode-yaml|red|1.14.0
code-spell-checker|str|3.0.1
move-ts|str|1.12.0
intellicode-api-usage-examples|Vis|0.2.8
vscodeintellicode|Vis|1.2.30
volar|Vue|2.0.3

(1 theme extensions excluded)

</details><details>
<summary>A/B Experiments</summary>

```
vsliv368:30146709
vspor879:30202332
vspor708:30202333
vspor363:30204092
vscoreces:30445986
vscod805cf:30301675
binariesv615:30325510
vsaa593cf:30376535
py29gd2263:30899288
c4g48928:30535728
azure-dev_surveyone:30548225
2i9eh265:30646982
962ge761:30959799
pythongtdpath:30769146
welcomedialog:30910333
pythonidxpt:30866567
pythonnoceb:30805159
asynctok:30898717
pythontestfixt:30902429
pythonregdiag2:30936856
pyreplss1:30897532
pythonmypyd1:30879173
pythoncet0:30885854
pythontbext0:30879054
accentitlementst:30887150
dsvsc016:30899300
dsvsc017:30899301
dsvsc018:30899302
d34g3935:30971562
edj9j583:30969295
a89i1917:30973842
78248357:30976999
dsvsc020:30976470

```

</details>

<!-- generated by issue reporter -->