This is the mail archive of the
cygwin-xfree
mailing list for the Cygwin XFree86 project.
RE: 'run xterm' fails to open a window
> From: cygwin-xfree-owner@cygwin.com [mailto:cygwin-xfree-
> owner@cygwin.com] On Behalf Of Lothar Brendel
> Sent: Tuesday, November 10, 2009 4:52 PM
> E.g. in a Windows command prompt or a non-X11 cygwin-console, the
> command
> run sleep -wait 5
> does *not* wait for the sleep to terminate. Moreover
> run false -wait
> does *not* set %errorlevel% to 1.
Why are you using run for these?
[SNIP]
C:\mike>C:\cygwin\bin\sh.exe -c false
C:\mike>echo %ERRORLEVEL%
1
C:\mike>
[/SNIP]
[SNIP]
C:\mike>C:\cygwin\bin\sh.exe -c "PATH=/usr/bin sleep 5"
C:\mike>
[/SNIP]
Sleep occurred.
On Windows there must be a console for programs that use console, which means a console window. To not have a console window, a program must be compiled as a GUI app, which means no console available. To get nifty cygwin features like windowless consoles, you must fully enter the cygwin environment. There is no magic bullet.
HTH,
Mike