Repository navigation
XDG Changes - #1060
Merged
Merged
XDG Changes#1060
Conversation
Member
|
|
| } | ||
|
|
||
| HistorySavePath = System.IO.Path.Combine( | ||
| Environment.GetEnvironmentVariable("HOME"), |
Contributor
There was a problem hiding this comment.
There will be an dup path issue if we directly append modulepath with "home" again since you have already got the absolute path of modulepath. You should be able to directly use it. Please make sure add a test case for HistorySavePath.
There was a problem hiding this comment.
Can you remove this commented out code?
There was a problem hiding this comment.
These changes cannot be tested automatically, but I've manually verified it worked.
Andy Jordan (andyleejordan)
force-pushed
the
xdg
branch
2 times, most recently
from
June 6, 2016 23:39
fc19259 to
733f238
Compare
Member
|
LGTM |
Conflicts: src/Microsoft.PowerShell.ConsoleHost/host/msh/ConsoleHost.cs
This renames the tests and updates for better requirement specifications. The profile, modules, history, and startup cache data are tested for not breaking Windows behavior, new Linux behavior, and respecting set variables on launch. This also corrects some erroneous assumptions I had previously made. The ModuleAnalysisCache cannot be tested, and the startup cache data might not be testable on Windows.
Bug introduced in initial port of PSReadLine. `Path.Combine` sees the initial backslash as an absolute path, thus discarding `AppData`.
These should be marked as `-Pending` but Pester doesn't accept both `-Skip` and `-Pending` parameters, so they had to be combined to support skipping on Windows.
Use `USERPROFILE`, not `HOME`. The latter doesn't exist on Windows, and `HOMEPATH` strips the drive. The former provides `C:\Users\<username>`. Fix location tested for JIT cache location on Windows.
Andy Jordan (andyleejordan)
force-pushed
the
xdg
branch
2 times, most recently
from
June 9, 2016 21:16
788a4dc to
560bcaf
Compare
Member
|
James Truher (@JamesWTruher) tests refactored, do you sign off? I say |
Thatgfsj (Thatgfsj)
pushed a commit
to Thatgfsj-contribs/PowerShell
that referenced
this pull request
Aug 6, 2026
XDG Changes I like these tests much better now - far easier to follow
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Enable options for using environment variable for XDG paths.
This change is