B20.1: windows reports illegal instruction, when using many arguments
Jorgo Bakker
jorgo@casema.net
Fri Sep 24 04:40:00 GMT 1999
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
ÃÂ
More information about the Cygwin
mailing list