home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #26 / NN_1992_26.iso / spool / comp / unix / shell / 4581 < prev    next >
Encoding:
Text File  |  1992-11-08  |  1.2 KB  |  32 lines

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