zsh-workers
 help / color / mirror / code / Atom feed
* export limit in zsh and other shells?
@ 1999-06-03  2:49 Nik Gervae
  1999-06-03  3:43 ` Geoff Wing
  0 siblings, 1 reply; 3+ messages in thread
From: Nik Gervae @ 1999-06-03  2:49 UTC (permalink / raw)
  To: zsh-workers

Here at PDI we use a TON of environment variables to control many aspects of
our animation jobs. Just today a user came to me complaining that when he
loaded *all* of these variables into his zsh session he got output like
this:

  % ls
  zsh: arg list too long: ls

I did a little research and have discovered that just about every shell we
have here--sh, bash, csh, tcsh, and zsh--exhibit this behavior when presented
with a couple hundred exported/environment variables. Many of these variables
are strings, by the way, so I suspect this might cause some kind of memory
buffer overrrun. Don't quote me on that, though.

Here's what I used to generate a test file to source:

  (i=0; while [[ ${i} -lt 600 ]] ; do
  echo "foo${i}=\"a nice long string to see what happens ${i}\""
  i=$[i + 1]
  done) >>| /tmp/vartest

--

Nik Gervae < nik at linna dot com >
Writer, coder, vegan, dilettante



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~1999-06-03  4:13 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-06-03  2:49 export limit in zsh and other shells? Nik Gervae
1999-06-03  3:43 ` Geoff Wing
1999-06-03  4:13   ` Bart Schaefer

Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).