Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Draft of PSModulePath behavior in PS7#233

Merged
joeyaiello merged 6 commits into
PowerShell:masterPowerShell/PowerShell-RFC:masterfrom
SteveL-MSFT:psmodulepathSteveL-MSFT/PowerShell-RFC:psmodulepathCopy head branch name to clipboard
Feb 5, 2020
Merged

Draft of PSModulePath behavior in PS7#233
joeyaiello merged 6 commits into
PowerShell:masterPowerShell/PowerShell-RFC:masterfrom
SteveL-MSFT:psmodulepathSteveL-MSFT/PowerShell-RFC:psmodulepathCopy head branch name to clipboard

Conversation

@SteveL-MSFT

Copy link
Copy Markdown
Member

Define behavior of PSModulePath in PS7 when starting and when starting Windows PowerShell

Comment thread 1-Draft/RFCxxxx-PSModulePath.md Outdated

@JamesWTruher JamesWTruher left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's good, but some details still need fleshing out

Comment thread 1-Draft/RFCxxxx-PSModulePath.md Outdated
Comment thread 1-Draft/RFCxxxx-PSModulePath.md Outdated

### Starting PowerShell 7 from Windows PowerShell

The PowerShell 7 startup covers this case and should just work.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

these need to be explicit; what changes are made (if any) to env:PSModulePath in these cases? Are there differences between platforms (Windows vs Non-Windows)

Comment thread 1-Draft/RFCxxxx-PSModulePath.md Outdated
Comment thread 1-Draft/RFCxxxx-PSModulePath.md Outdated
@SteveL-MSFT SteveL-MSFT added this to the 7.0-Consider milestone Nov 25, 2019
Comment thread 1-Draft/RFCxxxx-PSModulePath.md Outdated
Change would be to use `$env:PSModulePath`, but prefix with `User` modules path + `System` modules path +
`$PSHOME` modules path if any of those paths are not already there.

`Windows` modules path will already be there along with any additional paths added by the user or applications.

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Update to reflect the comparison with PSModulePath in User registry

Comment thread 1-Draft/RFCxxxx-PSModulePath.md Outdated

### Starting Windows PowerShell from PowerShell 7

```powershell

Copy link
Copy Markdown
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Remove indentation

Comment thread 1-Draft/RFCxxxx-PSModulePath.md Outdated

### Starting Windows PowerShell from PowerShell 7

```powershell

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Unindent these code blocks. The MD code fences are being treated as code because of the indentation. This causes a rendering problem

Fix examples to be consistent.
@joeyaiello

joeyaiello commented Feb 5, 2020

Copy link
Copy Markdown
Contributor

@PowerShell/powershell-committee has accepted this RFC, and it's been implemented in PS 7.0

@joeyaiello joeyaiello merged commit a4f08ae into PowerShell:master Feb 5, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants

Morty Proxy This is a proxified and sanitized view of the page, visit original site.