rogalmic / vscode-bash-debug

Bash shell debugger extension for VSCode (based on bashdb)
MIT License
222 stars 26 forks source link

launch.json configured environment variables surrounded by single quotes #154

Open ssnyder opened 3 years ago

ssnyder commented 3 years ago

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

cuzzlor commented 3 years ago

Me too!