GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — removed appending WindowsPowerShell PSModulePath (#4656) · PowerShell/PowerShell@1e0acfa

File tree

Expand file treeCollapse file tree
Open diff view settings
Filter options
  • build.psm1
  • src/powershell-win-core
    • Microsoft.PowerShell_profile.ps1
  • test/powershell/engine/Module
    • ModulePath.Tests.ps1
Expand file treeCollapse file tree
Open diff view settings
Collapse file

‎build.psm1‎

Copy file name to clipboardExpand all lines: build.psm1
-6Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,12 +505,6 @@ Fix steps:
505505
Pop-Location
506506
}
507507

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-
514508
if ($Environment.IsRedHatFamily) {
515509
# add two symbolic links to system shared libraries that libmi.so is dependent on to handle
516510
# platform specific changes. This is the only set of platforms needed for this currently
Collapse file

‎src/powershell-win-core/Microsoft.PowerShell_profile.ps1‎

Copy file name to clipboardExpand all lines: src/powershell-win-core/Microsoft.PowerShell_profile.ps1
-10Lines changed: 0 additions & 10 deletions
This file was deleted.
Collapse file

‎test/powershell/engine/Module/ModulePath.Tests.ps1‎

Copy file name to clipboardExpand all lines: test/powershell/engine/Module/ModulePath.Tests.ps1
-14Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -94,18 +94,4 @@ Describe "SxS Module Path Basic Tests" -tags "CI" {
9494
$paths -contains $customeModules | Should Be $true
9595
}
9696

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-
}
11197
}

0 commit comments

Comments
0 (0)
You are visitor 01402520 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.