home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / unix / shell / 5134 < prev    next >
Encoding:
Internet Message Format  |  1992-12-22  |  1010 b 

  1. Path: sparky!uunet!gatech!usenet.ins.cwru.edu!agate!biosci!nntp.barrnet.net!nntp.pactel.com!eric
  2. From: eric@nit.pactel.com (Eric Pederson)
  3. Newsgroups: comp.unix.shell
  4. Subject: too many values in environment
  5. Message-ID: <BzoDt8.K3A@nit.pactel.com>
  6. Date: 22 Dec 92 19:22:19 GMT
  7. Organization: Pac*Tel Corporation
  8. Lines: 13
  9.  
  10. I am running SunOS 4.1.x and C-shell.  According to TFM, the maximum
  11. amount of space that argv[] and envp[] may take up is returned
  12. by sysconf(2).  On my machine the value is 1 megabyte.  However, my
  13. shell doesn't want to accept more than 100 environment variables.
  14. Since I am running some applications that require a zillion variables
  15. to be set before I run them, this limitation is a pain.
  16.  
  17. The putenv(3) library function allocates more enviromnent space using
  18. malloc() if neccessary.  Shouldn't csh's "setenv" built-in do the same
  19. thing?
  20. -- 
  21. Eric Pederson                                       Pac*Tel Corporation
  22. eric@nit.pactel.com                                        510-210-8890
  23.