This is the mail archive of the
cygwin
mailing list for the Cygwin project.
mintty vs runas (was: Re: CYGWIN=tty round 2)
- From: Andy Koppe <andy dot koppe at gmail dot com>
- To: cygwin at cygwin dot com
- Date: Tue, 24 May 2011 12:32:03 +0100
- Subject: mintty vs runas (was: Re: CYGWIN=tty round 2)
On 23 May 2011 22:24, Angelo Graziosi wrote:
> I want to flag that this:
>
> /cygdrive/c/WINDOWS/system32/runas.exe /user:pippo 'C:\cygwin-2\bin\bash
> --login -i'
>
> works in a dos-like shell (Cygwin.bat) but not in mintty.
That's yet another case of a non-Cygwin program expecting to talk to a
Windows console rather than the pipes underlying Cygwin's pseudo
terminal device implementation. Even runas's help output doesn't work
in mintty, which suggests that it's using console-specific functions
for all its I/O.
> Is there some trick to do the job also in mintty?
Not within it, but you could invoke mintty itself as administrator
with right-click->Run As or by changing its shortcut to invoke it
through runas.
Andy
--
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