From owner-freebsd-questions@freebsd.org Tue Mar 21 14:48:25 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 EA8B3D16F1A for ; Tue, 21 Mar 2017 14:48:25 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from smtp.fagskolen.gjovik.no (smtp.fagskolen.gjovik.no [IPv6:2001:700:1100:1:200:ff:fe00:b]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "smtp.fagskolen.gjovik.no", Issuer "Fagskolen i Gj??vik" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 90B101337 for ; Tue, 21 Mar 2017 14:48:25 +0000 (UTC) (envelope-from trond@fagskolen.gjovik.no) Received: from mail.fig.ol.no (localhost [127.0.0.1]) by mail.fig.ol.no (8.15.2/8.15.2) with ESMTPS id v2LEmI59051792 (version=TLSv1.2 cipher=DHE-RSA-AES256-GCM-SHA384 bits=256 verify=NO); Tue, 21 Mar 2017 15:48:18 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) Received: from localhost (trond@localhost) by mail.fig.ol.no (8.15.2/8.15.2/Submit) with ESMTP id v2LEmIYw051789; Tue, 21 Mar 2017 15:48:18 +0100 (CET) (envelope-from trond@fagskolen.gjovik.no) X-Authentication-Warning: mail.fig.ol.no: trond owned process doing -bs Date: Tue, 21 Mar 2017 15:48:18 +0100 (CET) From: =?ISO-8859-1?Q?Trond_Endrest=F8l?= Sender: Trond.Endrestol@fagskolen.gjovik.no To: Ernie Luzar cc: FreeBSD questions Subject: Re: command line history broken in 11.0 In-Reply-To: <58D1310E.6050000@gmail.com> Message-ID: References: <58D019EE.9030508@gmail.com> <58D1310E.6050000@gmail.com> User-Agent: Alpine 2.20 (BSF 67 2015-01-07) Organization: Fagskolen Innlandet OpenPGP: url=http://fig.ol.no/~trond/trond.key MIME-Version: 1.0 X-Spam-Status: No, score=-2.2 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 autolearn=ham autolearn_force=no version=3.4.1 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on mail.fig.ol.no Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8BIT 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 14:48:26 -0000 On Tue, 21 Mar 2017 09:56-0400, Ernie Luzar wrote: > 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? Running a command like this one in csh has always had the desired effect: shutdown -r now Upgrade to base/stable/11 r315683. ; exit I usually just type in the first initial characters, like "shu", hit the up arrow key one or more times, edit the command if needed, read the entire command one more time, and hit the enter key. -- +-------------------------------+------------------------------------+ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +-------------------------------+------------------------------------+ From owner-freebsd-questions@freebsd.org Tue Mar 21 15:03:55 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 728F5D165BA for ; Tue, 21 Mar 2017 15:03:55 +0000 (UTC) (envelope-from freebsd@str.komkon.org) Received: from tissa.komkon.org (tissa.komkon.org [52.5.170.204]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "komkon.org", Issuer "Let's Encrypt Authority X3" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 3EF1D1CAF for ; Tue, 21 Mar 2017 15:03:54 +0000 (UTC) (envelope-from freebsd@str.komkon.org) Received: from auth (localhost [127.0.0.1]) by tissa.komkon.org (8.15.2/8.15.2) with ESMTPSA id v2LEvhue016182 (version=TLSv1.2 cipher=ECDHE-RSA-AES256-GCM-SHA384 bits=256 verify=NOT) for ; Tue, 21 Mar 2017 10:57:43 -0400 (EDT) (envelope-from freebsd@str.komkon.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=str.komkon.org; s=mail; t=1490108263; bh=nKHluR3h3Z+4nQ4NpWIWuSxTHCNF9W074gC4K1zaBSQ=; h=Date:From:To:Subject; b=fuXimM15WVBXnagdbpqJpr8y/x2ZBVNBUaljvjsJodCxoz2I4xO4NI3ZZ+0h+Rtvr xZaAjqnjhR4dBM5WXGTP0iYht4tsv66D7+HntUhoffPcblzGm5N81H3BFI3iFKfKqg 36vwwOzLxf+s8a5CLsvjPlXv2Xl7mtTVVnWlJj6c= Date: Tue, 21 Mar 2017 10:57:43 -0400 (EDT) From: "Igor R." To: freebsd-questions@freebsd.org Subject: multiple nameservers in resolvconf.conf Message-ID: User-Agent: Alpine 2.20 (BSF 67 2015-01-07) MIME-Version: 1.0 Content-Type: text/plain; format=flowed; charset=US-ASCII X-Virus-Scanned: clamav-milter 0.99.2 at tissa.komkon.org X-Virus-Status: Clean 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 15:03:55 -0000 There are the following options in resolvconf.conf: https://www.freebsd.org/cgi/man.cgi?query=resolvconf.conf&sektion=5 append_nameservers and prepend_nameservers Even though the option has "nameservers" in plural, I could not find any example anywhere on the net that would indicate multiple values for these two options. How can one specify multiple servers in either of them? I've tried append_nameservers=127.0.0.1, 192.168.15.2 append_nameservers=127.0.0.1,192.168.15.2 append_nameservers=127.0.0.1 192.168.15.2 append_nameservers=127.0.0.1; 192.168.15.2 as well as specifying them on separate lines: append_nameservers=127.0.0.1 append_nameservers=192.168.15.2 These different version yield 3 different outcomes, but none of them produces resolv.conf (upon running resolvconf -u) with both servers in there. (Not that it matters, but there is an active information from dhcp server/client. Tested on 10.* system.) Thank you in adavnce, Igor