exporting functions in ash

Ole-Egil Hvitmyren oehvitmyren at network-electronics.com
Mon Jan 9 14:03:31 UTC 2006


Miles Roper wrote:
> no response from below post.  can anyone give me some help?
> 
> Hi,
> 
> How do you export a function in busybox ash?  I've tried export -f, this 
> this doesn't work.
> 

There's nothing in the manual for ash that suggests it supports 
exporting functions. Indeed, in the manual for "sh", which is what I 
would consider the reference here, it's stated that "You cannot export 
function names."

So maybe you should try to think outside the box?
Is exporting functions really necessary in your script?

Ole-Egil



More information about the busybox mailing list