azure-dev icon indicating copy to clipboard operation
azure-dev copied to clipboard

[Issue] azd env set adds a / character to value

Open greenie-msft opened this issue 3 years ago • 2 comments

  • [x] Make sure you've installed the latest version using instructions in the wiki

Output from azd version Run azd version and copy and paste the output here:

azd version 0.1.0-beta.4 (commit fd96b3e9b283598bc4dc736e893f1b47080fbf7d)

Output from az version Run az version and copy and paste the output here (minimum required version is 2.38.0):

azd version 0.1.0-beta.4 (commit fd96b3e9b283598bc4dc736e893f1b47080fbf7d)

Describe the bug When running the CLI command azd env set, the value that's added to the .env file has a "" character before a special character, such as a !

To Reproduce Steps to reproduce the behavior... Run the azd env set CLI command

Expected behavior The azd env set command should take the input and add it to the .env as entered from the user.

greenie-msft avatar Aug 22 '22 23:08 greenie-msft

Wasn't it a trailing ""?

jongio avatar Aug 22 '22 23:08 jongio

@jongio actually when the env variable included a special character, for example !, it was adding a \ before it.

greenie-msft avatar Aug 23 '22 15:08 greenie-msft

@greenie-msft Does this still repro?

savannahostrowski avatar May 10 '23 18:05 savannahostrowski