From owner-freebsd-questions@freebsd.org Tue Mar 21 17:44:01 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 63325D1668C for ; Tue, 21 Mar 2017 17:44:01 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay11.qsc.de (mailrelay11.qsc.de [212.99.187.252]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id DE428C7 for ; Tue, 21 Mar 2017 17:43:59 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay11.qsc.de; Tue, 21 Mar 2017 18:43:56 +0100 Received: from r56.edvax.de (port-92-195-127-117.dynamic.qsc.de [92.195.127.117]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id 9ADDA3CBF9; Tue, 21 Mar 2017 18:43:55 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v2LHhs4f002693; Tue, 21 Mar 2017 18:43:54 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 21 Mar 2017 18:43:54 +0100 From: Polytropon To: Adam Vande More Cc: Arthur Chance , FreeBSD Questions , Ernie Luzar Subject: Re: command line history broken in 11.0 Message-Id: <20170321184354.0e19582c.freebsd@edvax.de> In-Reply-To: References: <58D019EE.9030508@gmail.com> <20170321161947.f34a308d.freebsd@edvax.de> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay11.qsc.de with 32C5B6A3561 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2350 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 21 Mar 2017 17:44:01 -0000 On Tue, 21 Mar 2017 12:35:10 -0500, Adam Vande More wrote: > On Tue, Mar 21, 2017 at 10:19 AM, Polytropon wrote: > > > On Tue, 21 Mar 2017 14:31:34 +0000, Arthur Chance wrote: > > > On 20/03/2017 18:05, Ernie Luzar wrote: > > > > On 10.3 I had the current session saving the command line history when > > > > issuing the shutdown, halt, and reboot command by using these alias > > > > commands that I added to the .cshrc file of my logged in user account. > > > > > > > > alias sd "exit && shutdown now" > > > > alias sdp "exit && shutdown -p now" > > > > alias rboot "exit && reboot" > > > > alias stop "exit && halt" > > > > > > > > Now after doing a clean install of 11.0 and using the same .cshrc file > > > > the rboot and stop alias commands no longer save the current history. > > > > They act like the exit command is not getting executed. The sd and sdp > > > > alias commands are working as expected. > > > > > > > > When existing from a session terminal by issuing the exit command does > > > > still save the current history. > > > > > > > > Is there an alternate method I can use? > > > > > > > > > > To the best of my understanding, reboot and halt should really only be > > > used in single user mode, because they don't cleanly close down running > > > programs - they're more like pulling the power plug after a couple of > > > syncs. That's been the case for a long time now. > > > > Basically, "reboot" is equivalent to "shutdown -r now", just > > as "halt" is to "shutdown -h now". > > > That statement is true on Linux, not FreeBSD. It is "funcationally equivalent" (basically does the same), but differs in _how_ it does it (especially regarding program termination prior to shutdown). > > Both things do the same. > > From "man reboot": > > > > From "man reboot:" emphasis mine. > > Normally, the shutdown(8) utility is used when the system needs to be > halted or restarted, giving users advance warning of their impending > doom > and ***cleanly terminating specific programs***. > > See the init source if you question this. I do not, and even "man shutdown" mentions the specific difference (see -o option); "halt" and "reboot" have a specific own life, but "shutdown" will rely on init for certain tasks. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...