Skip to content

Latest commit

 

History

History
12 lines (8 loc) · 251 Bytes

File metadata and controls

12 lines (8 loc) · 251 Bytes

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