One optimisation that isn't done yet: if a subshell function like
f() (foo)is used in a command substitution, it forks twice. I would like it if it could be optimised to eliminate the fork if the subshell function is the last command in the command substitution.
Thanks, - M.