From owner-freebsd-current@FreeBSD.ORG Wed May 4 17:35:10 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 7A86816A4CE for ; Wed, 4 May 2005 17:35:10 +0000 (GMT) Received: from orb.pobox.com (orb.pobox.com [207.8.226.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id D7CAD43D5E for ; Wed, 4 May 2005 17:35:09 +0000 (GMT) (envelope-from b.candler@pobox.com) Received: from orb (localhost [127.0.0.1]) by orb.pobox.com (Postfix) with ESMTP id 576807D9; Wed, 4 May 2005 13:34:47 -0400 (EDT) Received: from billdog.local.linnet.org (dsl-212-74-113-65.access.uk.tiscali.com [212.74.113.65]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by orb.sasl.smtp.pobox.com (Postfix) with ESMTP id F0AAD89; Wed, 4 May 2005 13:34:45 -0400 (EDT) Received: from brian by billdog.local.linnet.org with local (Exim 4.43 (FreeBSD)) id 1DTNnU-0003zL-Kw; Wed, 04 May 2005 18:36:32 +0100 Date: Wed, 4 May 2005 18:36:32 +0100 From: Brian Candler To: Garrett Wollman Message-ID: <20050504173632.GA15198@uk.tiscali.com> References: <61359.216.177.243.35.1114722481.localmail@webmail.dnswatch.com> <20050429105416.GA94049@wedge.madpilot.net> <20050502195456.GA1226@uk.tiscali.com> <17015.43023.924186.422635@roam.psg.com> <20050504094000.GA1143@uk.tiscali.com> <20050504113817.GD22956@empiric.icir.org> <20050504132429.GA2105@uk.tiscali.com> <17016.63947.288811.788755@khavrinen.csail.mit.edu> <20050504171527.GA15176@uk.tiscali.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20050504171527.GA15176@uk.tiscali.com> User-Agent: Mutt/1.4.2.1i cc: freebsd-current@freebsd.org Subject: Re: boot banner project X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 04 May 2005 17:35:10 -0000 > On Wed, May 04, 2005 at 12:35:23PM -0400, Garrett Wollman wrote: > > < 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 -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.