make shell_parse return the indexes of the last parsed thing, which is
needed for completion