in reply to Re: shell within system() call
in thread shell within system() call

All correct, but for the record, and since the sourced file is env.ksh - smells like setting up the environment? - one could also, if so inclined, stuff functions into environment variables, since those are propagated:

qwurx [shmem] ~ > env BLORF='blorf () { echo $* blorf. };' sh -c 'IFS=" "; eval $BLORF; BLORF=""; blorf I say' I say blorf.

;-)