yes, would be nice to post the real dfn.sh.
As it was mentioned
& and
wait is completely useless here, you can safely remove them.
Actually defining functions in a script and sourcing that script (that was the dot dnf.sh) should work, so I guess the real script is not that simple. So please do not post just a few [random] lines from somewhere.....
otherwise probably:
Code:
declare -f fcn1
declare -f fcn2
...
may help