develooper Front page | | Postings from July 2006

Argument list too long

Thread Next
Eric Wilhelm
July 28, 2006 03:09
Argument list too long
Message ID:
I just remembered that the kernel argument list limit includes 
environment variables.  

$ perl -e 'warn "going to run system"; $ENV{FOO}="bah"x1000000; 
system("perl", "-e", "") and die "oops:  $!\n";'

going to run system at -e line 1.
oops:  Argument list too long

Could it maybe be this or something like it?

  local $ENV{PERL5LIB} = join $c->{path_sep}, $self->_added_to_INC;

(from run_perl_command() in

I haven't quite found a way to replicate this in the test suite though.

"It works better if you plug it in!"
--Sattinger's Law

Thread Next Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About