delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2001/04/10/17:56:11

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT sources DOT redhat DOT com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sources DOT redhat DOT com>
List-Help: <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner AT sources DOT redhat DOT com
Delivered-To: mailing list cygwin AT sources DOT redhat DOT com
Date: Tue, 10 Apr 2001 13:05:01 -0400
From: Christopher Faylor <cgf AT redhat DOT com>
To: Cygwin <cygwin AT cygwin DOT com>
Subject: Re: More on Job Control...
Message-ID: <20010410130501.B18200@redhat.com>
Reply-To: cygwin AT cygwin DOT com
Mail-Followup-To: Cygwin <cygwin AT cygwin DOT com>
References: <NDEILJKIAMKIMKIDIGNCIEGBCPAA DOT myoung AT intrinsic DOT com>
Mime-Version: 1.0
User-Agent: Mutt/1.3.11i
In-Reply-To: <NDEILJKIAMKIMKIDIGNCIEGBCPAA.myoung@intrinsic.com>; from myoung@intrinsic.com on Mon, Apr 09, 2001 at 12:46:46PM -0700

On Mon, Apr 09, 2001 at 12:46:46PM -0700, Mark Allan Young wrote:
>I was baffled about the job control issue, having read that it
>did indeed work.  I verified that my CYGWIN environment variable
>was set...and yet, still I couldn't suspend a job.
>
>then I noticed that the bat file I use to start up a cygwin
>shell window was setting the CYGWIN variable to '"tty"', instead
>of just 'tty'.  I changed this and I could suspend a sleep command.
>
>After this revelation, I found a couple of other strange things.
>
>First, if I type:
>
>	sleep 100 &
>
>it sleeps for 100 seconds in the background.
>
>but if I type:
>
>	sleep 100
>	<ctrl-z>
>	fg
>	
>it terminates immediately after the fg command.
>it does the same if I put in the background with 'bg'.

Have you checked the email archives on this.  This exact behavior
has been discussed recently.  It works the same way on Cygwin and
Linux.

>Another strange behaviour relates to my emacs setup.
>
>I have emacs aliased to 'emacs.bat' which is in my bin
>directory.
>
>the emacs.bat file starts up a GNU emacs 20.4.1 (i386-*-nt5.0.2195).
>
>If I start this up in the background with '&', when it exits, I get
>a done message.
>
>if I don't use the '&' and then try to suspend it
>with <ctrl-z>, it doesn't suspend.

A .bat file is not a cygwin application.  Cygwin isn't a special magic
program that brings UNIX functionality to everything on your system.
CTRL-Z will only work on Cygwin applications.

cgf

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

- Raw text -


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