From 75ad30673e1b5a98b7fa5a07dd2f47971fb0cda7 Mon Sep 17 00:00:00 2001 From: Ana Hobden Date: Tue, 18 Jan 2022 22:31:18 -0800 Subject: [PATCH] Correct Powershell Env setting In Powershell env vars are set via ```powershell > $Env:DEFMT_LOG = "trace" ``` Trying to run the example, as formatted prior to this change: ```powershell > Env: DEFMT_LOG = "trace" Env: : The term 'Env:' is not recognized as the name of a cmdlet, function, script file, or operable program. Check the spelling of the name, or if a path was included, verify that the path is correct and try again. At line:1 char:1 + Env: DEFMT_LOG = "trace" + ~~~~ + CategoryInfo : ObjectNotFound: (Env::String) [], CommandNotFoundException + FullyQualifiedErrorId : CommandNotFoundException ``` This is documented in https://docs.microsoft.com/en-us/powershell/module/microsoft.powershell.core/about/about_environment_variables?view=powershell-7.2. --- embedded-workshop-book/src/running-from-vsc.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/embedded-workshop-book/src/running-from-vsc.md b/embedded-workshop-book/src/running-from-vsc.md index ea519bb..a7eb676 100644 --- a/embedded-workshop-book/src/running-from-vsc.md +++ b/embedded-workshop-book/src/running-from-vsc.md @@ -12,7 +12,7 @@ $ export DEFMT_LOG=warn ### PowerShell ```console -$ Env: DEFMT_LOG = "warn" +$ $Env:DEFMT_LOG = "warn" ``` ### Windows