os/shell/ BashFunctions
Exporting functions
f() { echo "hello"; }
export -f f
note the -f
is required in export -f
in order for a function to be exported.
f() { echo "hello"; }
export -f f
note the -f
is required in export -f
in order for a function to be exported.