www.delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/1999/09/24/07:41:58

Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT sourceware DOT cygnus DOT com>
List-Subscribe: <mailto:cygwin-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin/>
List-Post: <mailto:cygwin AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin AT sourceware DOT cygnus DOT com
Message-ID: <000701bf0681$c4d98200$1700a8c0@laser>
From: "Jorgo Bakker" <jorgo AT casema DOT net>
To: <cygwin AT sourceware DOT cygnus DOT com>
Subject: B20.1: windows reports illegal instruction, when using many arguments
Date: Fri, 24 Sep 1999 13:41:39 +0200
MIME-Version: 1.0
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3

------=_NextPart_000_0004_01BF0692.8755C400
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

Hi All,

Running the script below gives a window message "illegal =
instruction...restart computer", if too many characters are on the =
command line.
    BASH.EXE-2.02$ ./run_ 998
    trying length=3D   9980
    BASH.EXE-2.02$ ./run__ 998
    trying length=3D   9980
    BASH.EXE-2.02$
Is the problem above a general one, or specific to my computer set-up? =
Problem created using CygWin32 with the gcc-2.95 release installed on a =
Win98 platform.

Note that this gives problems when porting code. Makefiles may have a =
'rm -rf $(OBJECTS)'. Of course it is possible to split the list of =
$(OBJECTS) up into smaller pieces (which I am doing right now), but I =
would like to minimize modifications.

Jorgo

-------
#!/bin/bash

number=3D0
numbers=3D

limit=3D1000
if [ x$1 !=3D x ] ; then limit=3D$1 ; fi

while [ "x$number" !=3D "x$limit" ]; do
  number=3D$[ number + 1 ]
#  numbers=3D"$numbers DummyLongFileName.$number"
  numbers=3D"$numbers 234567890"
done

length=3D`echo $numbers|wc -c`
echo "trying length=3D$length"
rm -f $numbers



------=_NextPart_000_0004_01BF0692.8755C400
Content-Type: text/html;
	charset="iso-8859-1"
Content-Transfer-Encoding: quoted-printable

<!DOCTYPE HTML PUBLIC "-//W3C//DTD W3 HTML//EN">
<HTML>
<HEAD>

<META content=3Dtext/html;charset=3Diso-8859-1 =
http-equiv=3DContent-Type>
<META content=3D'"MSHTML 4.72.3110.7"' name=3DGENERATOR>
</HEAD>
<BODY bgColor=3D#ffffff>
<DIV><FONT color=3D#000000 size=3D2>Hi All,</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Running the script below gives =
</FONT><FONT=20
size=3D2>a window message &quot;illegal instruction...restart =
computer&quot;, if=20
too many characters are on the command line.</FONT></DIV>
<BLOCKQUOTE>
    <DIV><FONT color=3D#000000 size=3D2>BASH.EXE-2.02$ ./run_ =
998<BR>trying=20
    length=3D&nbsp;&nbsp; 9980<BR>BASH.EXE-2.02$ ./run__ 998<BR>trying=20
    length=3D&nbsp;&nbsp; =
9980<BR>BASH.EXE-2.02$</FONT></DIV></BLOCKQUOTE>
<DIV>
<DIV><FONT size=3D2></FONT><FONT color=3D#000000 size=3D2>Is the problem =
above a=20
general one, or specific to my computer set-up? <FONT size=3D2>Problem =
created=20
using CygWin32 with the gcc-2.95 release installed on a Win98=20
platform.</FONT></FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>Note that this gives problems when porting code. =
Makefiles may=20
have a 'rm -rf $(OBJECTS)'. Of course it is possible to split the list =
of=20
$(OBJECTS) up into smaller pieces (which I am doing right now), but I =
would like=20
to minimize modifications.</FONT></DIV>
<DIV>&nbsp;</DIV>
<DIV><FONT color=3D#000000 size=3D2>Jorgo</FONT></DIV>
<DIV><FONT color=3D#000000 size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>-------</FONT></DIV>
<DIV><FONT size=3D2>#!/bin/bash</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>number=3D0<BR>numbers=3D</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>limit=3D1000<BR>if [ x$1 !=3D x ] ; then limit=3D$1 =
;=20
fi</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>while [ &quot;x$number&quot; !=3D =
&quot;x$limit&quot; ];=20
do<BR>&nbsp; number=3D$[ number + 1 ]<BR>#&nbsp; =
numbers=3D&quot;$numbers=20
DummyLongFileName.$number&quot;<BR>&nbsp; numbers=3D&quot;$numbers=20
234567890&quot;<BR>done</FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV>
<DIV><FONT size=3D2>length=3D`echo $numbers|wc -c`<BR>echo &quot;trying=20
length=3D$length&quot;<BR>rm -f $numbers<BR></FONT></DIV>
<DIV><FONT size=3D2></FONT>&nbsp;</DIV></DIV></BODY></HTML>

------=_NextPart_000_0004_01BF0692.8755C400--

- Raw text -


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