-
-
Notifications
You must be signed in to change notification settings - Fork 803
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PowerShell Core on Linux support #302
Comments
Can confirm similar issues exist on Ubuntu 14.04. |
Path separators actually shouldn't be an issue. PowerShell on Linux translates backslashes to forward slashes to be "slash agnostic"; what this prevents is a backslash as a literal character in a path name due to the inability to escape it. But your use of Anything using You honestly may just want to wait for Double prompting is a strange bug; I believe @ealexjordan is working on it. |
Thanks, @andschwa!
Don't spend too much time there, at least for our benefit: as of #304 we won't need to |
Issues 2 and 3 have been addressed. Issue 1 "shouldn't" be an issue for PowerShell commands but anytime a path is passed to an external application, the path sep char probably needs to be correct for the platform. Regarding issue 4, that is a known PSReadLine issue. Issue 5 needs further investigation. And as @dahlbyk mentions, there is an issue with the use of |
By #312 and #318, respectively. Are there any specific spots that Issue 1 (path separators) were an issue? #325 did make a minor change along these lines. Issue 4 should be resolved by #304. Issue 5 is related to #295. Are there any environment variables set by ssh-agent on macOS (e.g. |
You can fix this with Add-Member -PassThru -Force NoteProperty Added $indexAdded.ToArray() |
Add-Member -PassThru -Force NoteProperty Modified $indexModified.ToArray() |
Add-Member -PassThru -Force NoteProperty Deleted $indexDeleted.ToArray() |
Add-Member -PassThru -Force NoteProperty Unmerged $indexUnmerged.ToArray()
$working = (,$workingPaths) |
Add-Member -PassThru -Force NoteProperty Added $filesAdded |
Add-Member -PassThru -Force NoteProperty Modified $filesModified.ToArray() |
Add-Member -PassThru -Force NoteProperty Deleted $filesDeleted.ToArray() |
Add-Member -PassThru -Force NoteProperty Unmerged $filesUnmerged.ToArray() |
Fixed the Add-Member errors via PR #514 |
@rkeithhill is Pester able to run on PS Core on Travis? Would be great to have non-Windows CI to have some confidence that we're not completely broken.
This doesn't seem to be completely resolved yet.
Let's assume this will be resolved by #338. |
Pester is running cross-plat on PS Core. Would be good to test on Linux/macOS. |
I've enabled Travis CI for this repo, if anyone cares to add a https://github.com/pester/Pester/blob/0f5aff9fc34323659f9d68c29b3265a7f0d6bf6a/.travis.yml |
Other than deciding what to do about ssh-agent, are there any lingering issues with posh-git on Linux as of beta2? |
None that I can think of that are in our control. The only issue I see is that we are dependent on a beta of PSReadLine to be really usable on Linux. I'm hoping PS Core 6.1 will ship with PSReadLine 2.0.0. |
I believe with the removal of SSH functionality to the |
Issues I've found running posh-git on OS X:
.\posh-git
rather thanJoin-Path . posh-git
. Failing that, swapping to forward slash would work as they are supported everywhere.[Security.Principal.WindowsIdentity]::GetCurrent()
is unsupported.Write-Host
in the prompt on OS X/Linux. Tracked upstream at Powershell Prompt Double Execution PowerShell/PowerShell#1897The text was updated successfully, but these errors were encountered: