Operating System - HP-UX
1753846 Members
7944 Online
108807 Solutions
New Discussion юеВ

Re: reload function defintions

 
SOLVED
Go to solution
Jim Watt_1
Occasional Contributor

reload function defintions

I have a file containing several function definitions in my FPATH. As I understand it, when I invoke the core function, all functions in the file are loaded into memory.

If I change the definition of one of the functions in the file, how can I load the new version into the current shell? Is there some reload command?

I can start a new shell, load the functions, and use the new versions that way with no problem, but I want them in the current shell.
2 REPLIES 2
Dan Martin_1
Frequent Advisor
Solution

Re: reload function defintions

unset -f
typeset -fu


Dan
Jim Watt_1
Occasional Contributor

Re: reload function defintions

Dan,

Correct. Concise.

Cheers
Dave