Skip to content

Latest commit

 

History

History

export-function

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 

Export function

We export functions when we want them to be available to other scripts.

One example is when we want to use GNU parallel, and we want parallel to be able to call functions.

Example:

foo() { echo "hello"; }
export -f foo