home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!biosci!nntp.barrnet.net!nntp.pactel.com!eric
- From: eric@nit.pactel.com (Eric Pederson)
- Newsgroups: comp.unix.shell
- Subject: too many values in environment
- Message-ID: <BzoDt8.K3A@nit.pactel.com>
- Date: 22 Dec 92 19:22:19 GMT
- Organization: Pac*Tel Corporation
- Lines: 13
-
- 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?
- --
- Eric Pederson Pac*Tel Corporation
- eric@nit.pactel.com 510-210-8890
-