From owner-freebsd-current@FreeBSD.ORG Wed Aug 26 13:55:35 2009 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id A29AE1065694 for ; Wed, 26 Aug 2009 13:55:35 +0000 (UTC) (envelope-from barbara.xxx1975@libero.it) Received: from cp-out1.libero.it (cp-out1.libero.it [212.52.84.101]) by mx1.freebsd.org (Postfix) with ESMTP id 6950F8FC27 for ; Wed, 26 Aug 2009 13:55:35 +0000 (UTC) Received: from libero.it (192.168.17.8) by cp-out1.libero.it (8.5.107) id 4A8742F0005339A5; Wed, 26 Aug 2009 15:55:04 +0200 Date: Wed, 26 Aug 2009 15:55:03 +0200 Message-Id: MIME-Version: 1.0 X-Sensitivity: 3 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: quoted-printable From: "barbara" To: "spambox" X-XaM3-API-Version: 4.3 (R1) (B3pl25) X-SenderIP: 79.9.234.65 Cc: freebsd-current , noc Subject: Re: Root history not saving over reboot 8* X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 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, 26 Aug 2009 13:55:35 -0000 > barbara wrote: > > I didn't tried pressing ctrl-d, but I can confirm that the history ge= t lost even using shutdown as I use reboot only sometime in single user. > > > > BTW, isn't ctrl-d the combination for command completion? > > > I think I mentioned ctrl-d explicitly just because it is *essential* to= > press it. > Ctrl-D performs a clean exit, given that the command line is empty. > > If one issues "shutdown -r now", the shell is not terminated, as the > shutdown command starts the shutdown process in the background - becaus= e > "now" is not the only option and it basically schedules the shutdown to= > happen in 0 minutes. > After issuing "shutdown -r now" the user is returned to the shell, whic= h > remains active until it is killed during the shutdown process. > Hitting Ctrl-D immediately after issuing that command ensures that you = > have "exit"-ed the shell; if that was done before the shutdown kill > sequence, and before the filesystems are remounted read-only - that's > exactly why I said "immediately" - the shell *will* save the history fi= le. > > Using "reboot" or hitting Ctrl-Alt-Del on the console terminates all > virtual consoles; if a console is terminated, the shell that was runnin= g > on it exits on "Lost terminal" signal. > > I do indeed hope that this time my explanation is detailed enough. > Ok, I've got it. Your explaination is even too much detailed! But, without considering reboot or ctrl-alt-del, this is not what many us= ers expect also comparing the behavior of the previous releases. At least I never had such problem before 8. And you can see many request about that in various mailing list and there= is also one in the forum. I've also found a couple of bloggers reporting= that. Thanks