delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/06/19/01:27:18

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner AT cygwin DOT com
Mail-Followup-To: cygwin AT cygwin DOT com
Delivered-To: mailing list cygwin AT cygwin DOT com
Message-ID: <40D3CE97.9020903@luukku.com>
Date: Sat, 19 Jun 2004 08:26:47 +0300
From: Jani tiainen <redetin AT luukku DOT com>
User-Agent: Mozilla Thunderbird 0.7 (Windows/20040616)
MIME-Version: 1.0
To: Cygwin-L <cygwin AT cygwin DOT com>
Subject: Re: Ctrl-Z fails to suspend Windows programs
References: <87ekogc0uq DOT fsf AT eu DOT citrix DOT com><Pine DOT LNX DOT 4 DOT 58 DOT 0406171259170 DOT 30937 AT ming DOT fruitbat DOT org><h4o4z9lf4esc$.dlg AT thorstenkampe DOT de> <87vfhptdqu DOT fsf AT eu DOT citrix DOT com> <40D2EDB6 DOT 4000307 AT etr-usa DOT com>
In-Reply-To: <40D2EDB6.4000307@etr-usa.com>
X-IsSubscribed: yes

Warren Young wrote:

> John Cooper wrote:
> 
>>
>> The problem is that I often don't want to have to terminate the GUI 
>> app just to
>> get my shell prompt back.
> 
> 
> Well now, that's an entirely different deal.
> 
> Somehow, cmd.exe detects that a program is GUI-only, and it gives you 
> your prompt back when the program has launched.  I suspect it would be 
> better to find out how cmd.exe manages that trick than to put Ctrl-Z 
> support into Cygwin that will likely break some non-Cygwin programs.
> 
> One way to do this would be for Cygwin's exec() to look at the PE header 
> for the program and see if it has the console mode flag set.  If not, it 
> could do whatever the Cygwin 'run' program does to spin the program off, 
> detached from the shell.

That would be totally inconsistent how shells work. IMO, adding 
ampresand at end of command works as intended and is consistent how 
things work in *nixes

-- 

Jani Tiainen

--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019