Skip to content

Commit

Permalink
🔧 Update all references to $env:PATH (#239)
Browse files Browse the repository at this point in the history
Unix systems require uppercase PATH; their env drive is case sensitive
  • Loading branch information
vexx32 committed Sep 8, 2019
1 parent 0cf03c8 commit 8300057
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions PSKoans/Koans/Cmdlets 1/AboutPSProviders.Koans.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ param()
registry.
All providers that have a defined function with the Get-Content cmdlet can also be accessed
similarly to variable scopes, e.g., { $env:Path } instead of { Get-Content 'Env:Path' }
similarly to variable scopes, e.g., { $env:PATH } instead of { Get-Content 'env:PATH' }
#>
Describe 'Alias Provider' {
<#
Expand Down Expand Up @@ -53,7 +53,7 @@ Describe 'Alias Provider' {
New-Item -Path 'Alias:\grok' -Value 'Get-Item' -ErrorAction SilentlyContinue

$File = grok '____' -ErrorAction SilentlyContinue
$File | Should -BeOfType 'System.IO.FileInfo'
$File | Should -BeOfType [System.IO.FileInfo]

$Aliases2 = Get-ChildItem -Path 'Alias:'
__ | Should -Be $Aliases2.Count
Expand Down Expand Up @@ -128,7 +128,7 @@ Describe 'Environment Provider' {
}

It 'can be accessed via variables' {
'____' | Should -Be $env:Path
'____' | Should -Be $env:PATH
}
}

Expand Down
2 changes: 1 addition & 1 deletion docs/Show-Karma.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ Show-Karma -Contemplate
```

Opens the user's koans folder, housed in `$home\PSKoans`.
If VS Code is in `$env:Path`, opens VS Code to the workspace location.
If VS Code is in `$env:PATH`, opens VS Code to the workspace location.
Otherwise, the folder is opened in a file explorer.

## PARAMETERS
Expand Down

0 comments on commit 8300057

Please sign in to comment.