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

  1. Path: sparky!uunet!cis.ohio-state.edu!zaphod.mps.ohio-state.edu!uwm.edu!ogicse!das-news.harvard.edu!endor!adam
  2. From: adam@endor.uucp (Adam Shostack)
  3. Newsgroups: comp.unix.shell
  4. Subject: Re: too many values in environment
  5. Message-ID: <1992Dec23.211503.8335@das.harvard.edu>
  6. Date: 23 Dec 92 21:15:03 GMT
  7. Article-I.D.: das.1992Dec23.211503.8335
  8. References: <BzoDt8.K3A@nit.pactel.com>
  9. Sender: usenet@das.harvard.edu (Network News)
  10. Organization: Aiken Computation Lab, Harvard University
  11. Lines: 21
  12.  
  13. In article <BzoDt8.K3A@nit.pactel.com> eric@nit.pactel.com (Eric Pederson) writes:
  14. >I am running SunOS 4.1.x and C-shell.  According to TFM, the maximum
  15. >amount of space that argv[] and envp[] may take up is returned
  16. >by sysconf(2).  On my machine the value is 1 megabyte.  However, my
  17. >shell doesn't want to accept more than 100 environment variables.
  18. >Since I am running some applications that require a zillion variables
  19. >to be set before I run them, this limitation is a pain.
  20.  
  21. I know you found that printenv fixes this, but I wanted to add that
  22. you can avoid setting all those variables. Put ~/bin at the start
  23. of your path and fill it will short shell scripts that set the
  24. environment variables you need and then call the main program.  Its
  25. slightly slower than setting them all at startup, but I find it
  26. convineint not to set 600 zillion environment variables in my .login.
  27.  
  28. Adam
  29.  
  30. Adam Shostack                     adam@das.harvard.edu
  31.  
  32. What a terrible thing to have lost one's .sig.  Or not to have a .sig
  33. at all.  How true that is.
  34.