> On Wed, May 04, 2005 at 12:35:23PM -0400, Garrett Wollman wrote: > > <<On Wed, 4 May 2005 14:24:29 +0100, Brian Candler <B.Candler_at_pobox.com> said: > > > > > Now that /bin/sh has command history, > > > > /bin/sh in FreeBSD has *always* had command history. > > Sorry for being inexact - I meant being able to press cursor up and edit the > previous line. Hmm. Maybe just the magic "set -o emacs" was missing. [Powers up old FreeBSD 4.6.2 laptop] Argh. Yes that was it. But strangely, /bin/sh now seems to do that by default on my 5-STABLE box. Poking around - I see I have "set -o emacs" in ~/.shrc, and this came from /usr/local/share/dot.shrc. On the 4.6.2 box, /usr/share/skel/dot.shrc has that line commented out. Looking at CVS, this change was made in July 2002. However, I was using freshly-installed FreeBSD 5.3-RELEASE in a workshop a couple of weeks ago, and accounts which the students created using 'pw useradd <user> -m' didn't have working command history. I'll need to dig further to find out why, and what they should have done to fix it. Anyway, just shows you learn something new every day. All this time I've been telling people they should install bash to get interactive command history, but it looks like there's a much simpler answer :-( Thanks for the pointer. Regards, Brian.Received on Wed May 04 2005 - 15:35:10 UTC
This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:34 UTC