Interactive powershell by Cygwin

I cannot start PowerShell.exe interactively in the Cygwin rxvt or mintty terminal. Seems like some kind of session using / dev / tty? or / dev / pts? pseudo-terminal device. Instance using a junky windows console device / dev / console or / dev / cons? will work.

cygstart /bin/bash -li

runs the console version on a rough Windows command prompt, which is the only place I can get interactive PowerShell.

Console

Working. Rxvt doesnt: rxvt

Doesn't mint: mintty

I tried everything echo -e | powershell.exeandpowershell.exe </dev/null

I assume that when I see the answers on Stackoverflow, they use the console ... or am I missing something?

PowerShell 2 Cygwin?, , , powershell v3, v2... , .


powershell powershell Cygwin, ( no script , ). . https://bitbucket.org/jbianchi/powershell/wiki/ script. powershell.exe "she-bang", ps1 script.

+4
5

, , http://sergeybelous.com/ ( ) Proxy32 proxywinconsole.exe. , poweshell.bash , PowerShell.

+1

powershell cygwin/babun, https://code.google.com/p/mintty/issues/detail?id=56#c64. Bascilly, downloard compile https://github.com/rprichard/winpty, $PATH,

console.exe powershell

, powershell .

+1

, , , , :

, , MinTTY Issue # 56. , cmd.exe, , Unix TTY , Windows.

0

powershell Cygwin bash, .

0

Script powershell Cygwin minty:

blahblah@blahblahbin $ cat pwrshl
#!/usr/bin/bash if [[ ! -f "$1" ]] then
        echo "Usage: $0 <PowerShellScriptFile>"
        exit fi

echo "\n" | powershell -Command "& {$(<$1)}"
-2

All Articles