mirror of
https://github.com/PowerShell/PowerShell
synced 2026-06-08 12:12:50 +00:00
Correct case of $PSHOME special variable
This commit is contained in:
@@ -69,11 +69,11 @@ Describe "String cmdlets" -Tags "CI" {
|
||||
It "match object supports RelativePath method" {
|
||||
$file = "Modules${sep}Microsoft.PowerShell.Utility${sep}Microsoft.PowerShell.Utility.psd1"
|
||||
|
||||
$match = Select-String CmdletsToExport $pshome/$file
|
||||
$match = Select-String CmdletsToExport $PSHOME/$file
|
||||
|
||||
$match.RelativePath($pshome) | Should -Be $file
|
||||
$match.RelativePath($pshome.ToLower()) | Should -Be $file
|
||||
$match.RelativePath($pshome.ToUpper()) | Should -Be $file
|
||||
$match.RelativePath($PSHOME) | Should -Be $file
|
||||
$match.RelativePath($PSHOME.ToLower()) | Should -Be $file
|
||||
$match.RelativePath($PSHOME.ToUpper()) | Should -Be $file
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user