From owner-freebsd-questions@freebsd.org Tue Mar 21 13:56:09 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 F3509D16F93 for ; Tue, 21 Mar 2017 13:56:09 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-io0-x22a.google.com (mail-io0-x22a.google.com [IPv6:2607:f8b0:4001:c06::22a]) (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 B9CE11437 for ; Tue, 21 Mar 2017 13:56:09 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-io0-x22a.google.com with SMTP id f84so48680540ioj.0 for ; Tue, 21 Mar 2017 06:56:09 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-transfer-encoding; bh=rquFQytya45xEfCkPL25RoHEmQSRaYsPgN/Io3Cxfek=; b=HYu/ibRp2iBcQ3M3c5o2TOYnEruVlWtjiDWiEU9zlePJXoB5jEjD+inB+CnafGktjm FYoQoGeGi3hqWlXSB4/kbxGuOZ89fNZfmJnNKVDLJtMRrY78tSOp4MOC92Nep5cRGEJv mztXcYYSMteTXC47jQul4jVEgM3G4q8phwWxFGXFSGpkg38irLMUrGbi6weyOhD/m7BS ejTofvmwkeLRL34H+IyKPlvQ+6AcUwPeYUgjmYruvryb48OJY87n0TejXQbxOkJxRrdG 2nirO5fp33XXvn47GOzHwCh754GugRQYgu5UXiyPy+X0N69LlGyHDBZi2FTG5k6BxACx Dm1Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:message-id:date:from:user-agent:mime-version:to :cc:subject:references:in-reply-to:content-transfer-encoding; bh=rquFQytya45xEfCkPL25RoHEmQSRaYsPgN/Io3Cxfek=; b=YfXVxZbvaqutAyMqUhwD/T5SAIUZS28b20W9PBRweXTJvGx4Acc41ss+UC2vmFr/AK C473stdrfmeVdAF94OTAx+o/81W0j2ZfUUARlrpK4M65sXXaEKS1/hr2sc52xgfGeszb Ftoi3hX/NJhxAmSncDjEX3Dlg8l1RLI84+XukdlLUic9Do2HajXRj8uUSW42xRaxVA7e U3q9aQG2chFTuxrHGEK+wUX53EBH7UQV6krynWzF9j+x3q81OHbBNK082a4E9zJC6KuP GEcQmCx5bnYB7PQpUKxZoSJTj3fbG0oxpN3djgxDiWOE4nTlTIsKfYgFJHdt+X3/vvPE AVVw== X-Gm-Message-State: AFeK/H23Ef/wf1UW0xPDiMDaO6TSXPNdz1wr/E6EqyAeQxK/YRhtQemSOtGN54s1j2Gobw== X-Received: by 10.107.8.91 with SMTP id 88mr30352760ioi.142.1490104569084; Tue, 21 Mar 2017 06:56:09 -0700 (PDT) Received: from [10.0.10.3] (cpe-65-25-52-33.neo.res.rr.com. [65.25.52.33]) by smtp.googlemail.com with ESMTPSA id d42sm10105858ioj.61.2017.03.21.06.56.08 (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Tue, 21 Mar 2017 06:56:08 -0700 (PDT) Message-ID: <58D1310E.6050000@gmail.com> Date: Tue, 21 Mar 2017 09:56:30 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: =?ISO-8859-1?Q?Trond_Endrest=F8l?= CC: FreeBSD questions Subject: Re: command line history broken in 11.0 References: <58D019EE.9030508@gmail.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 8bit 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 13:56:10 -0000 Trond Endrestøl wrote: > On Mon, 20 Mar 2017 14:05-0400, 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? >> Here is my .cshrc file >> >> alias sd "exit && shutdown now" >> alias sdp "exit && shutdown -p now" >> alias rboot "exit && reboot" >> alias stop "exit && halt" >> >> >> >> # A righteous umask >> umask 22 >> >> set path = (/sbin /bin /usr/sbin /usr/bin /usr/local/sbin /usr/local/bin >> $HOME/bin) >> >> setenv EDITOR ee >> setenv PAGER more >> setenv BLOCKSIZE K >> >> if ($?prompt) then >> # An interactive shell -- set some stuff up >> set prompt = "%/ >" >> set filec >> set history = 100 >> set savehist = (100 merge) >> set histdup = erase >> set autolist = ambiguous >> # Use history to aid expansion >> set autoexpand >> set autorehash >> set mail = (/var/mail/$USER) >> if ( $?tcsh ) then >> bindkey "^W" backward-delete-word >> bindkey -k up history-search-backward >> bindkey -k down history-search-forward >> endif >> endif > > > 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?