From owner-freebsd-questions@freebsd.org Mon Mar 20 18:05:10 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 6B6A6D14F79 for ; Mon, 20 Mar 2017 18:05:10 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: from mail-it0-x243.google.com (mail-it0-x243.google.com [IPv6:2607:f8b0:4001:c0b::243]) (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 34A12D33 for ; Mon, 20 Mar 2017 18:05:10 +0000 (UTC) (envelope-from luzar722@gmail.com) Received: by mail-it0-x243.google.com with SMTP id z70so4156450itb.1 for ; Mon, 20 Mar 2017 11:05:10 -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:subject :content-transfer-encoding; bh=YD3x4ASvxQR8onYYAMBff+N5KCi3uGTDE7RdHl6eqvs=; b=Rrg3oj62uDpyPYDjIPI7n2LHoMc8zPvQvcp1X0eh19mAD+jJYc6j8bMiRHFSkYo0V7 jUMz1l5dndlf6sdO4Nrx+r8CgTCWu58AAQKTt02aoqk4RIBY9We7Py46n/UqH9oinKmG B2nJad7a8VFrBcG/yQ+n7rhyqWSAbmJOBj6VNSV/0WquSTbzezQ0YAzS5FouMAv2zBg7 mwb2j5XP8A8g9hS5bacdThXFAuR1QxL7jPcsY0NYhnU8+uQpKuwL+1mAm4n3yr9jyWyv vMEbVQCyyoFp0mKD3LNEqRaEg1g5DriOWwUI4sAGXjAL9gxzomEy6pinIcWVKYh67TKH vF9g== 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 :subject:content-transfer-encoding; bh=YD3x4ASvxQR8onYYAMBff+N5KCi3uGTDE7RdHl6eqvs=; b=fdvK74k4YO8ISnhdporwhSvrsRLEQFwQ/Qx3yx0sdlxiRolL4jDPW49MN2Tmi918xB SB3JtDmBZQ3TL5+0S6vZTNaa3KdxBFrDezJjHkqSUsq7nO3WcLk2VSpu4ULshZ40w1RK hUYqwDY4JBccTOxkTnT8rjDVfXYR7Iw0q9EvHc4EJFv0iq5F5P8PrHxwFLug7GdXAahZ hp/qVFizoYiZlIj1hcbNz6JfaA1tYS4pZ+IpGrHpGJrfyH022UG9uLZCOgsknonwNp0V 2A6aOE/HXEjeW1V+US5z/ULTPTAabUDcuuDOVyVGZxVKg+fSzk7Ddntjr2UxnSDvNktl g2BA== X-Gm-Message-State: AFeK/H1QA6u4HXYVUPY71fZofNg9s571FO9ZhrSto6YuomerdUqeGtuUaPZv6Sg+eYfiSw== X-Received: by 10.107.132.140 with SMTP id o12mr26547910ioi.181.1490033109314; Mon, 20 Mar 2017 11:05: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 r85sm5544515itc.13.2017.03.20.11.05.08 for (version=TLS1 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Mon, 20 Mar 2017 11:05:08 -0700 (PDT) Message-ID: <58D019EE.9030508@gmail.com> Date: Mon, 20 Mar 2017 14:05:34 -0400 From: Ernie Luzar User-Agent: Thunderbird 2.0.0.24 (Windows/20100228) MIME-Version: 1.0 To: freebsd-questions@FreeBSD.org Subject: command line history broken in 11.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: Mon, 20 Mar 2017 18:05:10 -0000 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