From owner-freebsd-questions@freebsd.org Tue Mar 21 17:35:13 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 17801D162C8 for ; Tue, 21 Mar 2017 17:35:13 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: from mail-wm0-x22c.google.com (mail-wm0-x22c.google.com [IPv6:2a00:1450:400c:c09::22c]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (Client CN "smtp.gmail.com", Issuer "Google Internet Authority G2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id A0ADB1980 for ; Tue, 21 Mar 2017 17:35:12 +0000 (UTC) (envelope-from amvandemore@gmail.com) Received: by mail-wm0-x22c.google.com with SMTP id u132so17510437wmg.0 for ; Tue, 21 Mar 2017 10:35:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=oM1LZBspv1gubQEG1+2fDMP/2DU3mUm346tD7O3EBOg=; b=Ro/yhQ8DvKzykogH/hm7qZs05fJxy0/0iCp8gcrqEi95vTHKP4BkHb1Vrhir2uS+Db WDyvPNYaB+FoYfUBZTc+duhYI8eOSQwyhMwXupLeArOjDNi5CRwS7lol3wA0FSzvYa1A rxFnp7ICTc6teoFaZxHf5huIGXwkk0egBfkfeUNf+gewzCq7UZ+Z7PjLmQcGrfr5kKWA HZ+E71G+6/MzMdpp0AXOok5hJFoR/iB5qVU1cczDJLNQHf0HggJLP1zdxklvaEE8yRay KvRgVpNPOtvmR/iRvF4l7z8YG9bKW82um8nCnZs4azzCk0mN99I5mxCrQopgB/RXAMI+ RbOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=oM1LZBspv1gubQEG1+2fDMP/2DU3mUm346tD7O3EBOg=; b=BDEmauNIZ4QapXY3ERevI27XzewM+AgnPH25I27JE9BbW5h4kLPRGEQPIxrSa5UkLd A6CGH8rfMf2D3nRPxLydMx45G20iRZz+dboT5TZYNE+0kEXtPTmKSjlYm+pi3ydJ8BPh I75g7r4k+AZndX/WUCZBIj/jCHzPQNwgqAbIGTcLPQPCwTw6oZq4auxT88+mayWmKeQB cFP46d4jnHvzFen7SleTiZ3DW5MdisLE4eYTLIIZPdp/cICAIQrZuMBT+Q+e6c6TAeaS 6A0oG9MvVbLSjL8Ayg5cpXNOuIW90etg97aWaeRVlb1rh5W7E7ESUFvqRc2vVS2vQyzi kRsA== X-Gm-Message-State: AFeK/H0w28i0pObbrvMg2i5fEbZQLhiebg1KSx2EuaTw1ncR+/zb6ivUnoU/CFmEWlQf7q/XbYwvDcJhCFA/gw== X-Received: by 10.28.63.66 with SMTP id m63mr3728701wma.82.1490117711008; Tue, 21 Mar 2017 10:35:11 -0700 (PDT) MIME-Version: 1.0 Received: by 10.80.164.2 with HTTP; Tue, 21 Mar 2017 10:35:10 -0700 (PDT) In-Reply-To: <20170321161947.f34a308d.freebsd@edvax.de> References: <58D019EE.9030508@gmail.com> <20170321161947.f34a308d.freebsd@edvax.de> From: Adam Vande More Date: Tue, 21 Mar 2017 12:35:10 -0500 Message-ID: Subject: Re: command line history broken in 11.0 To: Polytropon Cc: Arthur Chance , FreeBSD Questions , Ernie Luzar Content-Type: text/plain; charset=UTF-8 X-Content-Filtered-By: Mailman/MimeDel 2.1.23 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:35:13 -0000 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. > 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. -- Adam