home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1993 #3 / NN_1993_3.iso / spool / comp / unix / shell / 5464 < prev    next >
Encoding:
Text File  |  1993-01-22  |  1.1 KB  |  30 lines

  1. Newsgroups: comp.unix.shell
  2. Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!dkeisen
  3. From: dkeisen@leland.Stanford.EDU (Dave Eisen)
  4. Subject: Re: difference between set and setenv?
  5. Message-ID: <1993Jan22.172745.29785@leland.Stanford.EDU>
  6. Sender: news@leland.Stanford.EDU (Mr News)
  7. Organization: Sequoia Peripherals, Inc.
  8. Date: Fri, 22 Jan 93 17:27:45 GMT
  9. Lines: 19
  10.  
  11. In article <1993Jan22.105255.3991@newsserver.rrzn.uni-hannover.de> zzsb@kursix.rrzn.uni-hannover.de (Wolfgang Sander-Beuermann) writes:
  12. >
  13. >   set ...  defines variables within your current shell (only)
  14. >
  15. >   setenv ..defines global variables (i.e. the subshells will know them)
  16. >
  17.  
  18. Not just subshells. Any program you run will know them as well. 
  19. Use set for things the shell needs to know about and setenv for
  20. things like PATH, MAIL, TERM, and VISUAL that programs you invoke
  21. need to know about.
  22.  
  23.  
  24.  
  25. -- 
  26. Dave Eisen                               Sequoia Peripherals: (415) 967-5644
  27. dkeisen@leland.Stanford.EDU              Home:                (415) 321-5154
  28.        There's something in my library to offend everybody. 
  29.           --- Washington Coalition Against Censorship
  30.