home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!stanford.edu!nntp.Stanford.EDU!dkeisen
- From: dkeisen@leland.Stanford.EDU (Dave Eisen)
- Subject: Re: difference between set and setenv?
- Message-ID: <1993Jan22.172745.29785@leland.Stanford.EDU>
- Sender: news@leland.Stanford.EDU (Mr News)
- Organization: Sequoia Peripherals, Inc.
- Date: Fri, 22 Jan 93 17:27:45 GMT
- Lines: 19
-
- In article <1993Jan22.105255.3991@newsserver.rrzn.uni-hannover.de> zzsb@kursix.rrzn.uni-hannover.de (Wolfgang Sander-Beuermann) writes:
- >
- > set ... defines variables within your current shell (only)
- >
- > setenv ..defines global variables (i.e. the subshells will know them)
- >
-
- Not just subshells. Any program you run will know them as well.
- Use set for things the shell needs to know about and setenv for
- things like PATH, MAIL, TERM, and VISUAL that programs you invoke
- need to know about.
-
-
-
- --
- Dave Eisen Sequoia Peripherals: (415) 967-5644
- dkeisen@leland.Stanford.EDU Home: (415) 321-5154
- There's something in my library to offend everybody.
- --- Washington Coalition Against Censorship
-