I just want this to be noted. I see some interest with Windows 10 include BASH.
I try to run PowerShell in Windows Bash cmd. I installed it using the Ubuntu version 14.04.
$ sudo apt-get install libunwind8
$ sudo apt-get install libicu52
$ cd Downloads
$ sudo dpkg -i powershell_6.0.0-alpha.8-1_amd64-ubuntu.14.04-x64.deb
Commands seem to execute but the screen refresh after running the command won't clear. Also, when you start typing, the prompt is gone and start typing at the top of the screen.
Normal console behavior after running command the return to the next line of the prompt
See attached images.
Bash - Windows 10 Pro Insider Preview 14901.rs_prerelease.160805-1700
powershell_6.0.0-alpha.8-1_amd64-ubuntu.14.04-x64.deb
> $PSVersionTable
Alpha code running correctly on top of Beta code, eh? You expect a lot. :-) I can't even get a simple ASP.NET Core app (default web template) to run correctly in WSL.
Of course!! Haha!!
At least this is logged. It did load but I want see more!!!!
I'm loving this Linux stuff.
FYI, I get a weird console jitter when through Putty to a Linux server as well - not as bad as it is on Win 10 bash though. It's unusable as Max describes with win10 bash.
@toenuff that "weird jitter" has been one of known issues for a long time... but I think it got deleted from the known issues page. We're pretty tied to Console.ReadKey()
(unless we want to reimplement that!), and it's a bit slow at times. Do me a favor and file an issue with https://github.com/dotnet/corefx tomorrow :smile:
Possibly a dupe of #1088 -- but good detail...
Hey Jaykul, #1088 not a duplicate because its specific to Linux issue and not the Bash on Windows 10. Although I see that the console issue looks identical.
I hope this could be fix some time soon.
:)
@MaximoTrinidad would you please file a bug with BashOnWindows, and reference your issue here? Thanks.
@andschwa ... It's done! I logged the issue in BashOnWindows:
PowerShell in Windows BASH display issues when typing cmdlets https://github.com/Microsoft/BashOnWindows/issues/980
The conhost guys took a look - they think #1877 might be contributing the problem.
I'm working of changing the rendering for multiple reasons, hopefully they're right and my changes will just fix it.
My _quick_ hypothesis is it looks like CursorTop
is always zero. We definitely ran into this early on with xterm-like emulators on Linux; perhaps it's recurring with conhost.
With some help from @zadjii-msft and @stephentoub, this looks like a CLR issue: https://github.com/dotnet/corefx/issues/12452
I understand that this is meant to be a CLR issue, and that the issue itself is external. But it would for people waiting on this (at least me ;) ) be really nice if we knew when to retry Powershell. Right now it's of no use to me due to these issues alas.
I have to admit that it is sad that聽this has stalled. The work around still applies and I hope to see this working sometime soon. This is a good opportunity聽for Windows users using Windows Bash to聽learn Linux and聽try PowerShell with it聽without dealing with聽building a聽Linux OS from scratch.
:)
The corefx issue flagged as Up for Grabs
. So don't expect its a quick fix. 馃槙
@lypanov, @MaximoTrinidad, @iSazonov, if you want to try out PowerShell on Linux without installing Linux from scratch, perhaps our Linux containers will be of interest to you.
1) Install Docker for Windows (this should be a fairly straightforward MSI installation)
2) Open an administrative PowerShell prompt
3) docker run --interactive --tty microsoft/powershell
4) You're now in PowerShell, in the Ubuntu 14.04 container, on Windows; try $PSVersionTable
Thanks聽@andschwa!聽 I got my laptop running聽Linux聽with PowerShell since day one. I'm just looking聽to create聽awareness with Windows聽10 Bash which I already got the workaround doing its magic. No pretty but at least is workable!
I will take your information provided to play with containers later. This is an area聽I need to tackle soon.
:)
Thanks,
Maximo Trinidad
Thanks @andschwa! The main problem is that one Microsoft product (Powershell Core) does not work with other Microsoft product (WSL) harms the reputation of the company despite the fact that the product is still alfa.
Confirmed still in an issue in PS 6.0.0-alpha17
https://github.com/dotnet/corefx/issues/12452 is still open
Most helpful comment
The conhost guys took a look - they think #1877 might be contributing the problem.
I'm working of changing the rendering for multiple reasons, hopefully they're right and my changes will just fix it.