develooper Front page | perl.module.build | Postings from July 2006

Argument list too long

Thread Next
From:
Eric Wilhelm
Date:
July 28, 2006 03:09
Subject:
Argument list too long
Message ID:
200607280309.33214.ewilhelm@cpan.org
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 Base.pm)

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

--Eric
-- 
"It works better if you plug it in!"
--Sattinger's Law
---------------------------------------------------
    http://scratchcomputing.com
---------------------------------------------------

Thread Next


nntp.perl.org: Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at ask@perl.org | Group listing | About