Better handling of aliases and default input for redirected stdin