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 |
Delivered-To: | mailing list cygwin AT cygwin DOT com |
Message-ID: | <012101c1b3e7$6be65900$9d00a8c0@mchasecompaq> |
From: | "Michael A Chase" <mchase AT ix DOT netcom DOT com> |
To: | "morad m" <mekkim AT hotmail DOT com>, <cygwin AT sources DOT redhat DOT com> |
References: | <LAW2-F9414N69dStaJA00003d38 AT hotmail DOT com> |
Subject: | Re: problems with bash |
Date: | Tue, 12 Feb 2002 09:04:01 -0800 |
MIME-Version: | 1.0 |
X-Priority: | 3 |
X-MSMail-Priority: | Normal |
X-Mailer: | Microsoft Outlook Express 6.00.2600.0000 |
X-MimeOLE: | Produced By Microsoft MimeOLE V6.00.2600.0000 |
This is a general shell script debugging problem, probably not Cygwin specific. I'm a bit nervous about $a and $b not being quoted. If either is absent or empty, the effects could be unexpected. Try to eliminate some of the 2000 lines that aren't causing the problem. "set -x -v" before the if might help you to see where the error is actually occurring. If the script has more than a couple dozen lines, you should probably write the script in Perl or Python. Just catching a couple problems like this before they blow up will repay you the time it takes to learn either language. -- Mac :}) ** I normally forward private questions to the appropriate mail list. ** Ask Smarter: http://www.tuxedo.org/~esr/faqs/smart-questions.htm Give a hobbit a fish and he eats fish for a day. Give a hobbit a ring and he eats fish for an age. ----- Original Message ----- From: "morad m" <mekkim AT hotmail DOT com> To: <cygwin AT sources DOT redhat DOT com> Sent: Tuesday, February 12, 2002 08:38 Subject: problems with bash > I have noticed one problem when using bash: > > In my script : > > if [ $a = $b ]; then > (about 2000 lines of shell stuff here) > fi > > Then bash fails with the following error: > fork_helper: child died before initialization with win32 error 128 > fork: No more processes -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |