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.
;-)
In reply to Re^2: shell within system() call
by shmem
in thread shell within system() call
by claudius
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |