home *** CD-ROM | disk | FTP | other *** search
- Newsgroups: comp.unix.shell
- Path: sparky!uunet!coplex!trebor!root
- From: root@trebor.uucp (Bob Stockler)
- Subject: Re: ksh alias export
- Organization: Bob Stockler
- Distribution: usa
- Date: Fri, 06 Nov 1992 22:51:44 GMT
- Message-ID: <1992Nov06.225144.6009@trebor.uucp>
- References: <1992Nov06.000738.12219@mixcom.com>
- Lines: 20
-
- calyx.corp <calyx.corp@mixcom.mixcom.com> writes:
-
- >How can you export aliases in the korn shell to a subshell
- >that is created with ksh. I tried some tricks with the
- >SHELL environment variable and to no avail.
-
- 1) Put the alias definitions in a file (conventionally, "$HOME/.kshrc",
- but the name is not "special" to the KornShell).
-
- 2) Set and export the parameter ENV to contain the full pathname of the
- file in 1), above. Do this in "/etc/profile", "$HOME/.profile", or
- wherever it is convenient, so that ENV is in the user's environment.
-
- 3) Whenever an instance of the KornShell is started up, the file named
- in ENV will be read and executed as though it were a "dot" file, and
- the results will be available in that subshell's environment.
-
- I am new to the KornShell, but at my present level of understanding, I
- believe this to be correct. I'll appreciate knowing if it's off base.
-
-