No reason to invoke two shells. Fixed:
system 'bash', '-c', 'source yourscript.sh' [download]
In reply to Re^2: system & exec by ikegami in thread system & exec by dideod.yang