pkgbase versus /root/.cshrc

From: Graham Perrin <grahamperrin_at_gmail.com>
Date: Thu, 14 Mar 2024 02:51:57 UTC
15.0-CURRENT. Upgraded from 150014 to 1500015, if that's relevant.

Customisations to  /root/.cshrc were lost. Noticeable when key bindings 
were incorrect.

Regained from the boot environment that preceded the upgrade.

If you like, I can provide a log of the upgrade.

root@mowa219-gjp4-zbook-freebsd:~# bectl list -c creation | tail -n 6
1500014-oa-ports--61.1M2024-03-1211:44
1500014-pa-base--8.71M2024-03-1217:03
1500014-qa-kde6--685M2024-03-1223:58
1500014-ra-base--1.11G2024-03-1301:19
1500014-sa-base--1.09G2024-03-1313:07
1500015-01-baseNR/290G2024-03-1401:44
root@mowa219-gjp4-zbook-freebsd:~# less /.cshrc
#root@mowa219-gjp4-zbook-freebsd:~ #
root@mowa219-gjp4-zbook-freebsd:~# less /root/.cshrc
root@mowa219-gjp4-zbook-freebsd:~# less /etc/csh.cshrc
root@mowa219-gjp4-zbook-freebsd:~# bectl mount 1500014-sa-base /tmp/down
/tmp/down
root@mowa219-gjp4-zbook-freebsd:~# less /tmp/down/.cshrc
/tmp/down/.cshrc:Nosuchfileordirectory
root@mowa219-gjp4-zbook-freebsd:~# rm /.cshrc
root@mowa219-gjp4-zbook-freebsd:~# less /tmp/down/root/.cshrc
root@mowa219-gjp4-zbook-freebsd:~# diff /tmp/down/root/.cshrc /root/.cshrc
23,24c23
<# setenv EDITOR /usr/bin/vi
<# setenv VISUAL /usr/bin/vi
---
>setenv EDITOR vi
27,35d25
<# 2021-04-21 xterm1 <https://photos.app.goo.gl/wEY24PFB4ytep42E9>
<# setenv TERM xterm1
<# 2021-04-21 no entry for terminal type "xterm-256"
<# setenv TERM xterm-256
<
<# setenv TERM vt200
<# setenv TERM xterm
<setenv TERM xterm-256color
<
42,43c32,33
<set history = 2000
<set savehist = (2000merge)
---
>set history = 1000
>set savehist = (1000merge)
53,63d42
<# bindkey '\e[1~' beginning-of-line
<# bindkey '\e[4~' end-of-line
<bindkey '\e[3~'delete-char
<# bindkey '\e[5~' beginning-of-history
<# bindkey '\e[6~' end-of-history
<# bindkey '\e[2~' quoted-insert
<# bindkey '\e[5C' forward-word
<# bindkey '\e[5D' backward-word
<bindkey '\e[1;5C'forward-word
<bindkey '\e[1;5D'backward-word
<
root@mowa219-gjp4-zbook-freebsd:~# find /tmp/down/root -name "*.pkgsave" 
-print
root@mowa219-gjp4-zbook-freebsd:~# cp /tmp/down/root/.cshrc /root/.cshrc
root@mowa219-gjp4-zbook-freebsd:~# bectl umount 1500014-sa-base
root@mowa219-gjp4-zbook-freebsd:~# exit
logout
%su-
Password:
root@mowa219-gjp4-zbook-freebsd:~# nano /root/.cshrc 
root@mowa219-gjp4-zbook-freebsd:~ #
root@mowa219-gjp4-zbook-freebsd:~# uname -aKU
FreeBSDmowa219-gjp4-zbook-freebsd15.0-CURRENTFreeBSD15.0-CURRENTmain-n268792-a7b9f4d96e8bGENERICamd6415000151500015
root@mowa219-gjp4-zbook-freebsd:~#