www.delorie.com/archives/browse.cgi | search |
X-Recipient: | archive-cygwin AT delorie DOT com |
X-Spam-Check-By: | sourceware.org |
Date: | Mon, 2 Mar 2009 14:45:41 -0500 |
From: | Christopher Faylor <cgf-use-the-mailinglist-please AT cygwin DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: job control: "set CYGWIN=tty" but ^Z doesn't work |
Message-ID: | <20090302194541.GB6805@ednor.casa.cgf.cx> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <49AC13A4 DOT 5070507 AT smart DOT net> <416096c60903021131t6955fb6dme775b9853804e41e AT mail DOT gmail DOT com> |
MIME-Version: | 1.0 |
In-Reply-To: | <416096c60903021131t6955fb6dme775b9853804e41e@mail.gmail.com> |
User-Agent: | Mutt/1.5.16 (2007-06-09) |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Id: | <cygwin.cygwin.com> |
List-Unsubscribe: | <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com> |
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 |
On Mon, Mar 02, 2009 at 07:31:54PM +0000, Andy Koppe wrote: >2009/3/2 Daniel S.: >>What setup is need to get ^Z to suspend the current process? >> >>The CygWin manual Environment Variables section at >>http://cygwin.com/cygwin-ug-net/setup-env.html says: >> >>?The CYGWIN variable is used ... [Y]ou can ... set it to tty (e.g. >>to support ?job control with ^Z etc...) using a syntax like this in the >>DOS shell, before ?launching bash. > >You have to make sure that the CYGWIN variable is set before any Cygwin >programs are run, because it is read when the Cygwin DLL is first >loaded. Exiting all Cygwin processes before invoking cygwin.bat again >should do the trick. That shouldn't be necessary. The CYGWIN=tty is inherited by just one process. It isn't shared. >> for (( i = 1 ; i '<' 100000 ; i = i + 1 )) ; do : ; done Cygwin's CTRL-Z emulation isn't perfect. It may not work well in a scenario where you're in a tight loop in user space code which is what the above bash loop would be. cgf -- 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/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |