delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT cygwin DOT com> |
List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/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 |
Date: | Sun, 14 Mar 2004 18:55:57 -0600 |
From: | Gregory Borota <not-valid AT cygwin DOT com> |
Reply-To: | cygwin AT cygwin DOT com |
To: | cygwin AT cygwin DOT com |
Subject: | Bash bug |
Message-ID: | <Pine.CYG.4.58.0403141847200.1856@lap> |
MIME-Version: | 1.0 |
I tested this over and over. I think it's a 'nasty' bug here. #!/bin/bash ( # sleep 1 # or whatever not very quick command! set -m; sleep 10 & # or whatever command takes some time to complete set +m; pid=$! ( sleep 1; kill -- -$pid ) & wait $pid ) without sleep 1 commented you get: ./bug.sh: line 8: kill: (-760) - No such process with it uncommented it works as expected ./bug.sh: line 10: 492 Terminated sleep 10 -- 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 |