Skip site navigation (1)Skip section navigation (2)
Date:      Tue, 21 Mar 2017 15:48:18 +0100 (CET)
From:      =?ISO-8859-1?Q?Trond_Endrest=F8l?= <Trond.Endrestol@fagskolen.gjovik.no>
To:        Ernie Luzar <luzar722@gmail.com>
Cc:        FreeBSD questions <freebsd-questions@FreeBSD.org>
Subject:   Re: command line history broken in 11.0
Message-ID:  <alpine.BSF.2.20.1703211544340.533@mail.fig.ol.no>
In-Reply-To: <58D1310E.6050000@gmail.com>
References:  <58D019EE.9030508@gmail.com> <alpine.BSF.2.20.1703210942220.533@mail.fig.ol.no> <58D1310E.6050000@gmail.com>

next in thread | previous in thread | raw e-mail | index | archive | help
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: <owner-freebsd-questions@freebsd.org>
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 <freebsd-questions@mailman.ysv.freebsd.org>;
 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 <freebsd-questions@freebsd.org>; 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 <freebsd-questions@freebsd.org>; 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." <freebsd@str.komkon.org>
To: freebsd-questions@freebsd.org
Subject: multiple nameservers in resolvconf.conf
Message-ID: <alpine.BSF.2.20.1703211046110.12389@tissa.komkon.org>
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 <freebsd-questions.freebsd.org>
List-Unsubscribe: <https://lists.freebsd.org/mailman/options/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=unsubscribe>
List-Archive: <http://lists.freebsd.org/pipermail/freebsd-questions/>;
List-Post: <mailto:freebsd-questions@freebsd.org>
List-Help: <mailto:freebsd-questions-request@freebsd.org?subject=help>
List-Subscribe: <https://lists.freebsd.org/mailman/listinfo/freebsd-questions>, 
 <mailto:freebsd-questions-request@freebsd.org?subject=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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?alpine.BSF.2.20.1703211544340.533>