Exporting functions in ksh

Eduardo Krell ekrell at hector.UUCP
Tue Nov 21 02:07:18 AEST 1989


typeset -xf name

works for shell scripts only. If you want a new shell invocation
to inherit functions, you have to put them in your ENV file.

If you have the new (1988) ksh, you can set FPATH to a colon-separated
list of directories that ksh searches for auto-load functions. This
works like PATH does for command searching.
    
Eduardo Krell                   AT&T Bell Laboratories, Murray Hill, NJ

UUCP: {att,decvax,ucbvax}!ulysses!ekrell  Internet: ekrell at ulysses.att.com



More information about the Comp.unix.questions mailing list