Live data from Hacker News

FreeBSD switches the default root shell from csh to sh

cgit.freebsd.org

101–110 of 154 posts

Re: FreeBSD switches the default root shell from csh to sh

#101

Why not just go to Bash or ZSH?

Keeping more complicated stuff in ports rather than base means users can easily get the exact version they wany so FreeBSD tries to keep base as explicitly a base system.

It's a tradeoff but one I find more useful than not.

Re: FreeBSD switches the default root shell from csh to sh

#102
post #11

We once upgraded a major research department from csh to tcsh (while also migrating most users to bash). A senior leader complained that when they hit the up arrow, the last command they typed showed up. I explained how to disable readline

Why do people care what their default shell is, when you can just “exec csh” immediately upon logging in?

Was this kind of shell changing disabled? Maybe there’s no way of doing that exec automatically? Is there some advantage to having your shell of choice explicitly listed in /etc/passwd?

Re: FreeBSD switches the default root shell from csh to sh

#103
post #42
post #35

Earlier quoted context omitted.

I've been trying to stick with bash for at least 20 years (I did have a brief tcsh phase before that) since a time when sticking with it meant having to install it on every unix system I touched. However, now that MacOS defaults to zsh, I'm starting to wonder if I should summon up the effort to change again.

personally, I don't have interest in zsh because bash is the default shell in Linux, which is the UNIX system I use (I find mac's unix to be really a weird variant). Mac switching to zsh is just more evidence they're diverting from the mainstream.

macOS is about as standard of a Unix as you can get, apart from Linux with coreutils.

Re: FreeBSD switches the default root shell from csh to sh

#104

A die-hard tcsh user myself, I mourn the end of an era, but has anyone done serious scripting in the C shell? I jokingly call it a sin in the eyes of the LORD, but seriously, it really, really sucks compared to even just the POSIX shell. It's probably time for me to finally give into Bash or zsh or something equally modern. Might be nice to get access to all of those shell completion hooks some tools have—not because…

zsh + oh my zsh + https://starship.rs/ is my pitch to anyone looking to upgrade their shell.

Re: FreeBSD switches the default root shell from csh to sh

#105

Earlier quoted context omitted.

I wonder what he was using the up arrow key for in the shell.

How do you know he was a he?

Because in a sibling comment by the same poster, previous to my comment, he wrote "he", so I assumed he was a he.

Re: FreeBSD switches the default root shell from csh to sh

#106
post #78

Earlier quoted context omitted.

> I find mac's unix to be really a weird variant It's closer to BSD than it is to Linux. Not super similar, but closer, especially in ways one tends to notice on the command line.

you're right, Mac OS X is a derivative of BSD but it also has significant Mach tech (like the linker). I've used freebsd for years and I still find Mac OS to be the least useful UNIX.

Ironic it's one of the few (only?) popular, widely deployed ones left that gets to sport the fact it's a certified Unix OS - https://www.opengroup.org/openbrand/register/

Re: FreeBSD switches the default root shell from csh to sh

#107
post #77

Earlier quoted context omitted.

without certainty, prior probabilities suggest a technically inclined research leader would be male.

And perpetuating these biases is what makes it feel lonely and not welcoming to be a woman in engineering.

A woman in engineering should know that just because things have been probable in the past does not mean they will in the future

For a guy growing around computers it has also been pretty lonely, more girls would have been welcome at any stage...

Re: FreeBSD switches the default root shell from csh to sh

#108
post #11

We once upgraded a major research department from csh to tcsh (while also migrating most users to bash). A senior leader complained that when they hit the up arrow, the last command they typed showed up. I explained how to disable readline

Why do people care what their default shell is, when you can just “exec csh” immediately upon logging in? Was this kind of shell changing disabled? Maybe there’s no way of doing that exec automatically? Is there some advantage to having your shell of choice explicitly listed in /etc/passwd?

There's a long list of boring answers you probably don't care about involving "these are biomedical researchers using UNIX, not hackers", "complex legacy scripts that depend on default shells", and "enterprise compliance".

Re: FreeBSD switches the default root shell from csh to sh

#109
post #77

Earlier quoted context omitted.

without certainty, prior probabilities suggest a technically inclined research leader would be male.

And perpetuating these biases is what makes it feel lonely and not welcoming to be a woman in engineering.

I don't ascribe completely to this philosophy. Also, I wrote "they" in my original comment.

Re: FreeBSD switches the default root shell from csh to sh

#110
post #78

Earlier quoted context omitted.

you're right, Mac OS X is a derivative of BSD but it also has significant Mach tech (like the linker). I've used freebsd for years and I still find Mac OS to be the least useful UNIX.

Ironic it's one of the few (only?) popular, widely deployed ones left that gets to sport the fact it's a certified Unix OS - https://www.opengroup.org/openbrand/register/

Sort of. I see this a different way. Many years ago, Linux replaced UNIX as the "standard UNIX", and certification become irrelevant.

Further, unless I'm missing an important technical detail, Linux could, with some effort, pass the certification process.

Post reply on HN