[Gretl-devel] genr command line length bug

Allin Cottrell cottrell at wfu.edu
Mon Apr 14 11:42:44 EDT 2008


On Mon, 14 Apr 2008, Sven Schreiber wrote:

> Am 14.04.2008 14:22, Riccardo (Jack) Lucchetti schrieb:
> 
> > In principle, this is a bug; as such, it needs to be fixed.
> 
> I'm glad you agree ;-)

Please send a test case.  The following script illustrates what is 
supposed to happen, though apparently it is not happening in all 
cases.

nulldata 601
list L
string S
loop i=1..600 -q
  series longseriesna$i = normal()
  L = L longseriesna$i
  S += " longseriesna$i"
endloop
ols const L
ols const @S

The first ols, using the list, is OK.  The second fails with
"Maximum length of command line (8192 bytes) exceeded".

But knock the number of variables down to 500 (!) and the second 
version works too.

Allin.



More information about the Gretl-devel mailing list