Re: csh to sh migration for root in RELENG_14

2023-11-18 Thread Tomoaki AOKI
On Sat, 18 Nov 2023 02:07:24 -0700 "Edward Sanford Sutton, III" wrote: > On 11/17/23 12:41, Garrett Wollman wrote: > > < said: > > > >> I am trying to bring my environment along from previous versions where > >> csh was the default shell and now trying to get used to sh. In the past > >> things

Re: csh to sh migration for root in RELENG_14

2023-11-18 Thread Marek Zarychta
Dnia Sat, Nov 18, 2023 at 10:44:18AM +0100, Piotr P. Stefaniak napisał(a): > On 2023-11-18 10:29:08, Marek Zarychta wrote: > > The change of root's shell from csh to sh was to attract a new > > generation of admins who were used to bash and similar shells. There is > > no turning back, no escape fr

Re: csh to sh migration for root in RELENG_14

2023-11-18 Thread Piotr P. Stefaniak
On 2023-11-18 10:29:08, Marek Zarychta wrote: The change of root's shell from csh to sh was to attract a new generation of admins who were used to bash and similar shells. There is no turning back, no escape from this trend. We will probably also transit with $EDITOR from vi to ee in the future.

Re: csh to sh migration for root in RELENG_14

2023-11-18 Thread Marek Zarychta
W dniu 17.11.2023 o 20:41, Garrett Wollman pisze: I would recommend changing root's shell to something that better suits your needs: either change it back to csh, or install the appropriate package and set it to bash or zsh, both of which read startup files for all interactive shells, not just lo

Re: csh to sh migration for root in RELENG_14

2023-11-18 Thread Edward Sanford Sutton, III
On 11/17/23 12:41, Garrett Wollman wrote: < said: I am trying to bring my environment along from previous versions where csh was the default shell and now trying to get used to sh. In the past things like sudo su would pick up my settings in /root/.cshrc automatically. However, with sh I

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread Warner Losh
On Fri, Nov 17, 2023, 12:55 PM Garrett Wollman wrote: > < said: > > > Thanks for the clarifications. With respect to changing root's shell, > > do I run the risk of breaking anything in, say, periodic that would rely > > on root's shell being one thing or another ? > > periodic(8) is a /bin/sh s

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread Garrett Wollman
< said: > Thanks for the clarifications.  With respect to changing root's shell, > do I run the risk of breaking anything in, say, periodic that would rely > on root's shell being one thing or another ? periodic(8) is a /bin/sh script and does not depend on any particular user's shell. It exec

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread mike tancsa
On 11/17/2023 2:41 PM, Garrett Wollman wrote: I would recommend changing root's shell to something that better suits your needs: either change it back to csh, or install the appropriate package and set it to bash or zsh, both of which read startup files for all interactive shells, not just login

csh to sh migration for root in RELENG_14

2023-11-17 Thread Garrett Wollman
< said: > I am trying to bring my environment along from previous versions where > csh was the default shell and now trying to get used to sh. In the past > things like > sudo su > would pick up my settings in /root/.cshrc automatically. However, with > sh I have to do > sudo su -l root > I

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread Warner Losh
I've done chsh :) On Fri, Nov 17, 2023, 12:02 PM Jonathan Adams wrote: > On Friday, November 17th, 2023 at 1:56 PM, mike tancsa > wrote: > > > Thanks, but I am hoping to be able to just > > > > > sudo su > > > > > on all boxes I manage, RELENG_12 through 14. I know its a minor > annoyance, but

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread Jonathan Adams
On Friday, November 17th, 2023 at 1:56 PM, mike tancsa wrote: > Thanks, but I am hoping to be able to just > > sudo su > > on all boxes I manage, RELENG_12 through 14. I know its a minor annoyance, > but I would like to avoid the inconsistent key strokes. Ah, understood. Been there. ;-) -J

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread Dr. Nikolaus Klepp
Anno domini 2023 Fri, 17 Nov 13:56:36 -0500 mike tancsa scripsit: > On 11/17/2023 1:50 PM, Jonathan Adams wrote: > > $ sudo su - > > > Thanks, but I am hoping to be able to just > > sudo su > > on all boxes I manage, RELENG_12 through 14.  I know its a minor > annoyance, but I would like to a

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread mike tancsa
On 11/17/2023 1:50 PM, Jonathan Adams wrote: $ sudo su - Thanks, but I am hoping to be able to just sudo su on all boxes I manage, RELENG_12 through 14.  I know its a minor annoyance, but I would like to avoid the inconsistent key strokes.     ---Mike

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread mike tancsa
On 11/17/2023 1:46 PM, Freddie Cash wrote: su by itself just switches your username, it doesn't pick up the rest of the environment settings like a proper login does. OK, but its doing something.  When I ssh into my account, I have setup things like my prompt to be PS1="- $? \u@\h:\w \\$ "

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread Jonathan Adams
On Friday, November 17th, 2023 at 1:40 PM, mike tancsa wrote: > I am trying to bring my environment along from previous versions where > csh was the default shell and now trying to get used to sh. In the past > things like > > sudo su > > would pick up my settings in /root/.cshrc automaticall

Re: csh to sh migration for root in RELENG_14

2023-11-17 Thread Freddie Cash
On Fri, Nov 17, 2023 at 10:41 AM mike tancsa wrote: > I am trying to bring my environment along from previous versions where > csh was the default shell and now trying to get used to sh. In the past > things like > > sudo su > > would pick up my settings in /root/.cshrc automatically. However, wi

csh to sh migration for root in RELENG_14

2023-11-17 Thread mike tancsa
I am trying to bring my environment along from previous versions where csh was the default shell and now trying to get used to sh. In the past things like sudo su would pick up my settings in /root/.cshrc automatically. However, with sh I have to do sudo su -l root Is there a way to config