Re: etcupdate -B, /.cshrc and /.profile

From: Steve Rikli <sr_at_genyosha.net>
Date: Thu, 17 Aug 2023 19:32:12 UTC
On Thu, Aug 17, 2023 at 07:17:20PM +0100, Graham Perrin wrote:
> If I recall correctly, a few hours ago etcupdate -B resulted in removal of
> two files:
> 
> /.cshrc
> /.profile
> 
> Is this degree of checking/removal a novelty?
> 
> (I can't recall the files' contents, or when I created them. I guess that I
> carelessly created them as dot files months ago without realising that I
> wasn't at ~, I don't mourn their loss.)

I suspect you didn't create them, at least not directly or manually; my
system still has them at the moment, and they appear to be the same
from /root/ :

$ uname -mrv
13.2-STABLE FreeBSD 13.2-STABLE stable/13-n255938-fec383bb5385 GENERIC amd64

$ ls -lai /.profile /root/.profile /.cshrc /root/.cshrc 
5 -rw-r--r--  2 root  wheel  1023 May 12  2022 /.cshrc
7 -rw-r--r--  2 root  wheel   507 May 12  2022 /.profile
5 -rw-r--r--  2 root  wheel  1023 May 12  2022 /root/.cshrc
7 -rw-r--r--  2 root  wheel   507 May 12  2022 /root/.profile

I think they were installed by FreeBSD rather than created. My other systems
which have been periodically upgraded over time have the same situation.

Cheers,
sr.