Subject: Re: /bin/sh previous command
To: Eric d'Alibut <email@example.com>
From: Steven M. Bellovin <firstname.lastname@example.org>
Date: 05/01/2007 21:35:25
On Tue, 1 May 2007 21:22:25 -0400
"Eric d'Alibut" <email@example.com> wrote:
> In single user mode, with /bin/sh, I cannot find a way to retrieve the
> previous command line issued, e.g. by using the Up arrow, or Esc-P, or
> anything else that I can discover.
> Is this doable? Can any shell that is available in single-user mode
> (with just / mounted) provide this "service?"
Have you tried 'set -o vi' (or 'set -o emacs', if that's your religion)?
--Steve Bellovin, http://www.cs.columbia.edu/~smb