If we want to fork
anything from inside a bash script (or even at the command line), we can simply surround it with $() or back-ticks. For example;
echo $(ls)
- this will fork the current environment and run ls within the (forked) subshell
How can we use vfork
(http://man7.org/linux/man-pages/man2/vfork.2.html) instead of the standard fork functionality?
vfork
function itself. If you're really concerned about performance benefits you should probably not be using any sort of shell as your development language