Is there a cleaner/DRYer way to export multiple functions than how I am doing it here, just repeating the export -f
command over and over?
foo() {
echo "foo"
}
bar() {
echo "bar"
}
baz() {
echo "baz"
}
export -f foo
export -f bar
export -f baz
export
takes multiple arguments. You can do:
export -f foo bar baz
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With