home *** CD-ROM | disk | FTP | other *** search
- Path: sparky!uunet!munnari.oz.au!bunyip.cc.uq.oz.au!uqcspe!cs.uq.oz.au!warwick
- From: warwick@cs.uq.oz.au (Warwick Allison)
- Newsgroups: comp.sys.atari.st.tech
- Subject: Re: set vs setenv
- Message-ID: <9839@uqcspe.cs.uq.oz.au>
- Date: 17 Aug 92 00:04:29 GMT
- References: <1992Aug15.061340.27301@cid.aes.doe.CA>
- Sender: news@cs.uq.oz.au
- Reply-To: warwick@cs.uq.oz.au
- Lines: 27
-
- afsfpel@cidsv03.cid.aes.doe.CA (Yves Pelletier) writes:
-
- >What exactly is the difference between the commands 'set' and 'setenv'?
- >I know what a variable is, and also what an environment variable is.
- >I'm asking because the shell I have almost decided upon (Tomshell),
- >doesn't have a 'setenv' (just 'set'). Other shells, notably gulam, have
- >both 'set' and 'setenv'.
-
- >Does the lack of a setenv command in Tomshell mean it simply cannot set
- >environment variables at all?
-
- Perhaps it follows the sh/bash/ksh convention, where variables can be
- "set" (actually, no keyword is used, just "VAR=value"), where variables
- may be tagged as "for export", using "export VAR". The difference is that
- variables that are not exported will not be passed down to child processes,
- so if, say, you set FOO=bar, but do not export it from your shell, a subprogram
- would not receive the "FOO" variable.
-
- (But I have never used Tomshell)
-
- --
- Warwick
- --
- _-_|\ warwick@cs.uq.oz.au /Disclaimer:
- / * <-- Computer Science Department, /
- \_.-._/ University of Queensland, / void (if removed)
- v Brisbane, Australia. /
-