Found in: /secure/obj/shell/history.c

returns the nth command if it's still in the history buffer.
