This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

B20.1: windows reports illegal instruction, when using many arguments


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=   9980
BASH.EXE-2.02$ ./run__ 998
trying length=   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=0
numbers=
 
limit=1000
if [ x$1 != x ] ; then limit=$1 ; fi
 
while [ "x$number" != "x$limit" ]; do
  number=$[ number + 1 ]
#  numbers="$numbers DummyLongFileName.$number"
  numbers="$numbers 234567890"
done
 
length=`echo $numbers|wc -c`
echo "trying length=$length"
rm -f $numbers
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]