Subject: Re: /bin/sh previous command
To: Eric d'Alibut <>
From: Steven M. Bellovin <>
List: netbsd-users
Date: 05/01/2007 21:35:25
On Tue, 1 May 2007 21:22:25 -0400
"Eric d'Alibut" <> 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,