Skip to content

Commit

Permalink
Correct Powershell Env setting
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Hoverbear authored Jan 19, 2022
1 parent d63f8df commit 75ad306
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion embedded-workshop-book/src/running-from-vsc.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ $ export DEFMT_LOG=warn

### PowerShell
```console
$ Env: DEFMT_LOG = "warn"
$ $Env:DEFMT_LOG = "warn"
```

### Windows
Expand Down

0 comments on commit 75ad306

Please sign in to comment.