From owner-freebsd-questions@freebsd.org Tue Mar 21 16:53:14 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 12227D1614A for ; Tue, 21 Mar 2017 16:53:14 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay13.qsc.de (mailrelay13.qsc.de [212.99.187.253]) (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 79E4C1E05 for ; Tue, 21 Mar 2017 16:53:13 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay13.qsc.de; Tue, 21 Mar 2017 17:53:05 +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 93FB03CC3F; Tue, 21 Mar 2017 17:53:01 +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 v2LGr1WA002523; Tue, 21 Mar 2017 17:53:01 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Tue, 21 Mar 2017 17:53:01 +0100 From: Polytropon To: Bernt Hansson Cc: Ernie Luzar , Trond =?ISO-8859-1?Q?Endrest=F8l?= , FreeBSD questions Subject: Re: command line history broken in 11.0 Message-Id: <20170321175301.3fb57948.freebsd@edvax.de> In-Reply-To: <657b8795-4f45-e468-8738-ae758081fb66@bananmonarki.se> References: <58D019EE.9030508@gmail.com> <58D1310E.6050000@gmail.com> <657b8795-4f45-e468-8738-ae758081fb66@bananmonarki.se> 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=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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 mailrelay13.qsc.de with 6A2EC69F281 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2034 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 16:53:14 -0000 On Tue, 21 Mar 2017 17:31:25 +0100, Bernt Hansson wrote: > On 2017-03-21 14:56, Ernie Luzar wrote: > > Trond Endrest=F8l wrote: > >> On Mon, 20 Mar 2017 14:05-0400, Ernie Luzar wrote: > >> > >> Wouldn't it be more practical to reverse your aliases and change the > >> conjunctions to unconditional sequences? > >> > >> alias sd "shutdown now; exit" > >> alias sdp "shutdown -p now; exit" > >> alias rboot "reboot; exit" > >> alias stop "halt; exit" > >> > > > > Tested your suggestion and it had no effect on the problem. > > > > I also tried this variation > > alias rboot "exit && sleep 5 && reboot" > > and it also had no effect on the problem. > > > > Does anyone know if reboot/halt had any changes between 10.3 and 11.0? >=20 > What is that exit stuff? It exits the shell, and when it has successfully (!) done that, then it waits 5 seconds and finally reboots. However, how does the shell do that if it has been exited? > I would have set it this way. >=20 > alias rboot "shutdown -r now or time" In my WindowMaker configuration, I have set the following command for system shutdown: xterm -class SHUTDOWN -fg black -bg red -e "shutdown -p now; read DUMMY" It is associated with the Ctrl+Alt+Moon key combination (Sun USB type 7 keyboard). For a reboot, a similar command could be used, just with -r instead of -p. --=20 Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...