Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , 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" To: Subject: B20.1: windows reports illegal instruction, when using many arguments Date: Fri, 24 Sep 1999 13:41:39 +0200 MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_NextPart_000_0004_01BF0692.8755C400" 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
Hi All,
 
Running the script below gives = a window message "illegal instruction...restart = computer", if=20 too many characters are on the command line.
BASH.EXE-2.02$ ./run_ = 998
trying=20 length=3D   9980
BASH.EXE-2.02$ ./run__ 998
trying=20 length=3D   = 9980
BASH.EXE-2.02$
Is the problem = above a=20 general one, or specific to my computer set-up? Problem = created=20 using CygWin32 with the gcc-2.95 release installed on a Win98=20 platform.
 
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.
 
Jorgo
 
-------
#!/bin/bash
 
number=3D0
numbers=3D
 
limit=3D1000
if [ x$1 !=3D x ] ; then limit=3D$1 = ;=20 fi
 
while [ "x$number" !=3D = "x$limit" ];=20 do
  number=3D$[ number + 1 ]
#  = numbers=3D"$numbers=20 DummyLongFileName.$number"
  numbers=3D"$numbers=20 234567890"
done
 
length=3D`echo $numbers|wc -c`
echo "trying=20 length=3D$length"
rm -f $numbers
 
------=_NextPart_000_0004_01BF0692.8755C400--