X-Recipient: archive-cygwin@delorie.com
X-SWARE-Spam-Status: No, hits=-2.0 required=5.0 	tests=BAYES_00,SARE_MSGID_LONG40,SPF_PASS
X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
In-Reply-To: <49AC13A4.5070507@smart.net>
References: <49AC13A4.5070507@smart.net>
Date: Mon, 2 Mar 2009 19:31:54 +0000
Message-ID: <416096c60903021131t6955fb6dme775b9853804e41e@mail.gmail.com>
Subject: Re: job control: "set CYGWIN=tty" but ^Z doesn't work
From: Andy Koppe <andy.koppe@gmail.com>
To: cygwin@cygwin.com
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
Precedence: bulk
List-Id: <cygwin.cygwin.com>
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie.com@cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com

2009/3/2 Daniel S. <dsb@smart.net>:
> 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:
>
> =A0The CYGWIN variable is used ... [Y]ou can ... set it to tty (e.g. to
> support
> =A0job control with ^Z etc...) using a syntax like this in the DOS shell,
> before
> =A0launching 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.

Andy

--
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/

