-
Notifications
You must be signed in to change notification settings - Fork 8.1k
Description
Hello,
I'm working on a project with Google Summer of Code and the FreeBSD organization to port PowerShell -- as well as the .NET SDK -- to the FreeBSD platform. So far, I've successfully compiled both native (libpsl-native) and managed parts of the PowerShell code on FreeBSD.
At first, three libpsl tests were failing: IsFileTest.RootIsFile, GetUserFromPid.Success and LocaleTest.Success. The last one was just a missing LANG env variable, so as soon as I set it, the test passed. But the first two ones required code changes, which I'm submitting as a PR with questions I had related to specific lines, but they are now ALL passing.
However, the resulting PowerShell build is misbehaving in some ways and I'd like some guidance as to what I should look for:
- This is what I'm getting for the shell prompt:
PS Alias:/>. - Running any cmdlet gets me a
not recognized as the name of a cmdlet, function...error. - Typing anything in results in repeated characters. For example, if I type in
Get-Help, this is what I get:PS Alias:/> GGeGetGet-Get-HGet-HeGet-HelGet-Help. Although, as I press Enter, the actual thing that gets read isGet-Help, and not the long string with repeated characters.
This is what my $PSVersionTable looks like:
Name Value
---- -----
PSVersion 6.1.0-preview.3
PSEdition Core
GitCommitId v6.1.0-preview.3-59-ge56a6c4bc9c42ba0d0a4c413f31d4508c7a65b75
OS FreeBSD 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 ...
Platform Unix
PSCompatibleVersions {1.0, 2.0, 3.0, 4.0...}
PSRemotingProtocolVersion 2.3
SerializationVersion 1.1.0.1
WSManStackVersion 3.0