GeezerVison is showing github.com — removed appending WindowsPowerShell PSModulePath (#4656) · PowerShell/PowerShell@1e0acfa
File tree
Expand file treeCollapse file tree
Open diff view settings
test/powershell/engine/Module
Expand file treeCollapse file tree
Open diff view settings
Collapse file
Copy file name to clipboardExpand all lines: build.psm1 -6Lines changed: 0 additions & 6 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -505,12 +505,6 @@ Fix steps: |
505 | 505 | Pop-Location |
506 | 506 | } |
507 | 507 |
|
508 | | - # copy PowerShell host profile if Windows |
509 | | - if ($Environment.IsWindows) |
510 | | - { |
511 | | - Copy-Item -Path "$PSScriptRoot/src/powershell-win-core/Microsoft.PowerShell_profile.ps1" -Destination $publishPath -Force |
512 | | - } |
513 | | - |
514 | 508 | if ($Environment.IsRedHatFamily) { |
515 | 509 | # add two symbolic links to system shared libraries that libmi.so is dependent on to handle |
516 | 510 | # platform specific changes. This is the only set of platforms needed for this currently |
|
Collapse file
Copy file name to clipboardExpand all lines: src/powershell-win-core/Microsoft.PowerShell_profile.ps1 -10Lines changed: 0 additions & 10 deletions Collapse file
Copy file name to clipboardExpand all lines: test/powershell/engine/Module/ModulePath.Tests.ps1 -14Lines changed: 0 additions & 14 deletions | Original file line number | Diff line number | Diff line change |
|---|
@@ -94,18 +94,4 @@ Describe "SxS Module Path Basic Tests" -tags "CI" { |
94 | 94 | $paths -contains $customeModules | Should Be $true |
95 | 95 | } |
96 | 96 |
|
97 | | - It "Default PowerShell profile appends Windows PowerShell PSModulePath only on Windows" { |
98 | | - |
99 | | - $psmodulepath = & $powershell -nologo -c '$env:PSModulePath' |
100 | | - |
101 | | - if ($IsWindows) |
102 | | - { |
103 | | - $psmodulepath[0] | Should Match "Warning" # for Windows, there is a warning that path being appended |
104 | | - $psmodulepath[1] | Should Match "WindowsPowerShell" |
105 | | - } |
106 | | - else |
107 | | - { |
108 | | - $psmodulepath[0] | Should Not Match "WindowsPowerShell" |
109 | | - } |
110 | | - } |
111 | 97 | } |