vscode-bash-debug icon indicating copy to clipboard operation
vscode-bash-debug copied to clipboard

launch.json configured environment variables surrounded by single quotes

Open ssnyder opened this issue 3 years ago • 1 comments

I am setting an environment variable in the launch.json file (here is the content:

{ "version": "0.2.0", "configurations": [ { "type": "bashdb", "request": "launch", "name": "Bash-Debug (hardcoded script name)", "cwd": "${workspaceFolder}", "program": "${workspaceFolder}/textdc.sh", "env": {"TEXT_DC_DIR":"/nlu/users/sharon_snyder/tmp"}, "terminalKind": "integrated" } ] } I am finding in my bash script that the variable TEXT_DC_DIR is surrounded by single quotes. echo ${TEXT_DC_DIR}

I can remove them using eval, but was hoping there was a way that I could avoid having the single quotes at all since I did not specify them in the launch.json.

Overall, this has been really helpful to use! Thanks for creating it

ssnyder avatar Jun 30 '21 15:06 ssnyder

Me too!

cuzzlor avatar Oct 26 '21 06:10 cuzzlor