Repository: vscode
Issue: Input variables quoted incorrectly
Labels: bug,tasks

Type: <b>Bug</b>

Try to use a bash based task with input variable that contains single quotes.
The automation profile is set to bash (Cygwin bash in this case, but given the issue, I'm fairly sure it will be reproducible under *NIX as well).
Neither `"quoting": "escape"`, nor `"strong"` will produce usable result.

`tasks.json`
```json
{
    "help": [
        "See https://go.microsoft.com/fwlink/?LinkId=733558 for the documentation about `tasks.json` format"
    ],
    "version": "2.0.0",
    "tasks":[
        {
            "label": "SilverSearcher",
            "type": "shell",
            "command": "ag",
            "args": [
                "--js",
                "--nogroup",
                {
                    "value": "${input:agSearchFor}",
                    "quoting": "strong"
                }
            ]
        }],
    "inputs": [
        {
            "id": "agSearchFor",
            "type": "promptString",
            "description": "Search for…",
            "default": "';'"
        }
    ]
}
```

```
ERR: Error: No query. What do you want to search for?
/usr/bin/bash: >: command not found

 *  The terminal process "C:\Programs\Cygwin\bin\bash.exe '-c', 'ag --js --nogroup '';'>''" terminated with exit code: 127. 
```

VS Code version: Code 1.74.1 (1ad8d514439d5077d2b0b7ee64d2ce82a9308e5a, 2022-12-14T10:30:51.966Z)
OS version: Windows_NT x64 10.0.19044
Modes:
Sandboxed: No

<details>
<summary>System Info</summary>

|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i3-8145U CPU @ 2.10GHz (4 x 2304)|
|GPU Status|2d_canvas: enabled<br>canvas_oop_rasterization: disabled_off<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_renderer: enabled_on<br>video_decode: enabled<br>video_encode: enabled<br>vulkan: disabled_off<br>webgl: enabled<br>webgl2: enabled<br>webgpu: disabled_off|
|Load (avg)|undefined|
|Memory (System)|7.86GB (0.53GB free)|
|Process Argv|--folder-uri file:///d%3A/Profiles/anrdaemon/Documents/hk/invapi-php|
|Screen Reader|no|
|VM|0%|
</details><details><summary>Extensions (33)</summary>

Extension|Author (truncated)|Version
---|---|---
vscode-json|and|1.5.2
vscode-intelephense-client|bme|1.8.2
vscode-eslint|dba|2.2.6
xml|Dot|2.5.1
diff|dup|0.0.1
gitlens|eam|13.1.1
vscode-html-css|ecm|1.13.1
EditorConfig|Edi|0.16.4
vscode-firefox-debug|fir|2.9.8
todo-tree|Gru|0.0.220
composer|ika|0.8.0
better-shellscript-syntax|jef|1.2.9
bash-ide-vscode|mad|1.23.0
jupyter|ms-|2022.11.1003412109
jupyter-keymap|ms-|1.0.0
jupyter-renderers|ms-|1.0.12
vscode-jupyter-cell-tags|ms-|0.1.6
vscode-jupyter-slideshow|ms-|0.1.5
remote-ssh|ms-|0.94.0
remote-ssh-edit|ms-|0.84.0
hexeditor|ms-|1.9.9
remote-explorer|ms-|0.0.3
sqltools|mtx|0.26.0
sqltools-driver-mysql|mtx|0.4.1
sqltools-driver-pg|mtx|0.4.0
sqltools-driver-sqlite|mtx|0.4.1
php-docblocker|nei|2.7.0
tcl|ras|0.1.0
vscode-xml|red|0.23.0
LiveServer|rit|5.7.9
html-to-css-autocompletion|sol|1.1.2
branch-in-window-title|wis|0.1.3-3
php-debug|xde|1.29.1


</details>
<!-- generated by issue reporter -->