Minor bug-fix: result variable shall be set in the main process, not in a
subshell.