last-shell-command -- thanks, ijp :-)