Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to export a function in ksh ? Without global declaration or using autoload

Tags:

linux

export

ksh

I have a function. I need to use it in parallel calls. for that I need to export the function first in ksh, which O am not able to. export -f or export -q, nothing is working really.

like image 360
Ansh007 Avatar asked Sep 13 '26 00:09

Ansh007


1 Answers

export -f or export -q, nothing is working really.

That's no wonder - ksh's export doesn't have such options.

Moreover, man ksh:

The export attribute of functions is currently not used.

If you don't want to use the provided means ENV and FPATH, your wish is unsatisfiable.

like image 170
Armali Avatar answered Sep 15 '26 10:09

Armali



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!