This is the mail archive of the
cygwin
mailing list for the Cygwin project.
Re: Running powershell inside urxvt or mintty
- From: BGINFO4X <bginfo4x at kztsoftware dot com>
- To: cygwin at cygwin dot com
- Date: Thu, 28 Mar 2013 10:28:09 +0100
- Subject: Re: Running powershell inside urxvt or mintty
- References: <CAAq2Xdo00sxj7ycB72zegqmbnD==S6cJPS6dz_bRSz_b-U4TqA at mail dot gmail dot com> <CAO2ddna7w6ZHFebfLsTsEsK8Ba69dSE9pxQ9LRZAOPnOzOPT0A at mail dot gmail dot com> <CAAq2XdpgMSLAGuqNESpwTmKz9ERLafj6jZJBwsw-UvUsw-JnZQ at mail dot gmail dot com>
2013/3/28 Thiago Padilha <tpadilha84@gmail.com>:
> It worked when using with the '-Comand' option or passing a script
> file as argument, but I still get stuck if I need to enter powershell
> REPL. Perhaps you have a workaround for it?
>
I don't have a workraound.
I think that the problem is related to mintty.
http://code.google.com/p/mintty/issues/detail?id=56#c12
Or try another console
Regards.
> In any case, thanks for your help
>
> On Thu, Mar 28, 2013 at 5:40 AM, BGINFO4X <bginfo4x@kztsoftware.com> wrote:
>> 2013/3/28 Thiago Padilha <tpadilha84@gmail.com>:
>>> I can successfully run powershell from cygwin if I start it from
>>> 'cygwin.bat' (running in the normal DOS console), but the powershell
>>> command simply hangs when I try to run it from urxvt or mintty. All I
>>> see is this:
>>>
>>> Windows PowerShell
>>> Copyright (C) 2009 Microsoft Corporation. All rights reserved.
>>>
>>> but after that no prompt is displayed. Anyone knows what I'm missing here?
>>>
>>
>> Try this:
>>
>> echo "\n" | powershell -Command "& {get-wmiObject Win32_Computersystem
>> | Format-Table Model}"
>>
>> Note: echo "\n" is necessary to return the prompt to the cygwin shell.
>> At least, when I tested.
>>
>> Regards.
>>
>>
>>
>>> --
>>> Problem reports: http://cygwin.com/problems.html
>>> FAQ: http://cygwin.com/faq/
>>> Documentation: http://cygwin.com/docs.html
>>> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>>>
>>
>> --
>> Problem reports: http://cygwin.com/problems.html
>> FAQ: http://cygwin.com/faq/
>> Documentation: http://cygwin.com/docs.html
>> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>>
>
> --
> Problem reports: http://cygwin.com/problems.html
> FAQ: http://cygwin.com/faq/
> Documentation: http://cygwin.com/docs.html
> Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
>
--
Problem reports: http://cygwin.com/problems.html
FAQ: http://cygwin.com/faq/
Documentation: http://cygwin.com/docs.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple