Operating System - HP-UX
1833875 Members
1963 Online
110063 Solutions
New Discussion

Re: Functions in other shell different korn shell

 
SOLVED
Go to solution
Manuales
Super Advisor

Functions in other shell different korn shell

can i make functions in other shell different korn shell ?
this is because i know only in korn i can do it ..

Thanks, Manuales
3 REPLIES 3
Geoff Wild
Honored Contributor
Solution

Re: Functions in other shell different korn shell

HPUX default shell is POSIX - so korn fuctions will work.

Rgds...Geoff
Proverbs 3:5,6 Trust in the Lord with all your heart and lean not on your own understanding; in all your ways acknowledge him, and he will make all your paths straight.
Manuales
Super Advisor

Re: Functions in other shell different korn shell

i know that only with korn shell you can make functions , in .profile file you have declare funcionts to be used by other scrpts... can i programate functions (files located in a path) with /usr/bin/sh ?? or is only for korn shell?
in fact there is a variable to be declared the path where are the functions .

Thanks, Manuales
James R. Ferguson
Acclaimed Contributor

Re: Functions in other shell different korn shell

Hi Manuales:

See the man pages for 'sh-posix'. Yes, you can define functions and aliases. See the 'typeset -f' and 'FPATH' variable, in particular.

Regards!

...JRF...