home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!spool.mu.edu!agate!ames!biosci!nntp.barrnet.net!nntp.pactel.com!eric
- From: eric@nit.pactel.com (Eric Pederson)
- Newsgroups: comp.unix.shell
- Subject: Re: too many values in environment
- Message-ID: <BzoLpJ.MAB@nit.pactel.com>
- Date: 22 Dec 92 22:12:55 GMT
- References: <BzoDt8.K3A@nit.pactel.com>
- Organization: Pac*Tel Corporation
- Lines: 21
-
- I write:
-
- >I am running SunOS 4.1.x and C-shell. According to TFM, the maximum
- >amount of space that argv[] and envp[] may take up is returned
- >by sysconf(2). On my machine the value is 1 megabyte. However, my
- >shell doesn't want to accept more than 100 environment variables.
- >Since I am running some applications that require a zillion variables
- >to be set before I run them, this limitation is a pain.
-
- >The putenv(3) library function allocates more enviromnent space using
- >malloc() if neccessary. Shouldn't csh's "setenv" built-in do the same
- >thing?
-
- I figured out (finally) that the program /bin/env is the one
- giving the message "too many values in environment". I can indeed
- put much more than 100 values in my environment, but I must
- use the builtin "printenv" to display them, not the program "env".
-
- --
- Eric Pederson Pac*Tel Corporation
- eric@nit.pactel.com 510-210-8890
-