News for hackers. Stuff that matters.
Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @09:49AM (#28930648)
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

Re:FreeBSD switches the default root shell from csh to sh by gorgoiler on Wednesday October 20, 2021 @05:44PM (#28937141)
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 by dekhn on Wednesday October 20, 2021 @06:05PM (#28937392)
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 by gorgoiler on Thursday October 21, 2021 @03:22PM (#28949645)
The second two sound quite interesting. I hadn’t thought about those at all.
Re:FreeBSD switches the default root shell from csh to sh by severino on Wednesday October 20, 2021 @10:57AM (#28931403)
I wonder what he was using the up arrow key for in the shell.
Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @11:08AM (#28931568)
In those days people mainly used ! expansion. https://en.wikipedia.org/wiki/C_shell#History. I know many people who are incredibly good at using ! expansion to edit previous commands ("change that command 5 lines ago to rm -rf this other folder") but it's a bit of a footgun.
Re:FreeBSD switches the default root shell from csh to sh by vermaden on Wednesday October 20, 2021 @03:42PM (#28935232)
Depends how you use it.

If you just want to execute it then it is a footgun - using only the !command syntax.

If you use the !command:p syntax then you are just printing what command has been executed instead of invoking it.

Example.

    % uname
    FreeBSD
    
    % !uname
    uname
    FreeBSD
    
    % !uname:p
    uname
    
    %
Re:FreeBSD switches the default root shell from csh to sh by jolmg on Wednesday October 20, 2021 @11:24AM (#28931816)
Right, but the up arrow didn't get in their way, right? So why get mad?

I imagine that how it worked for them before is that the up arrow would move the cursor to the previous line into the output of the previous command, while feeding the arrow key escape sequences to the shell prompt as part of the command. IOW, a pretty useless and annoying key right? Why even press it? How did they notice readline?

Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @11:29AM (#28931903)
from what I can tell he was looking hard for problems.

He also noticed that if you ran 9 "yes" commands on a 8 core machine, the CPU wasn't allocated in 8/9ths units (one process always got a lot less CPU). he was used to much more predictible CPU scheduler on multiprocessor systems (spoilt by TruCluster). Linux later adopted a better scheduler (fair share) so imho he was right on that one, even if "yes" is a terribly performance metric.

Re:FreeBSD switches the default root shell from csh to sh by fragmede on Wednesday October 20, 2021 @11:48AM (#28932160)
It seems the lesson here is that changing things out from under someone isn't a good look. What would have been the cost in not changing users' shells for them?
Re:FreeBSD switches the default root shell from csh to sh by tedunangst on Wednesday October 20, 2021 @12:35PM (#28932753)
Everybody else has a worse shell.
Re:FreeBSD switches the default root shell from csh to sh by Fr3ck on Thursday October 21, 2021 @08:01AM (#28943181)
Doesn’t the up arrow key show the last command executed?
[dead]
Re:FreeBSD switches the default root shell from csh to sh by severino on Wednesday October 20, 2021 @05:52PM (#28937238)
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 by azinman2 on Wednesday October 20, 2021 @06:13PM (#28937493)
Fair enough. Timeline wasn't so clear on that for me.

For the record, I see this kind of behavior all the time on HN.. I don't always call it out but occasionally. I always get downvoted, which doesn't surprise me, but it's the right thing to make people aware of these subtle behavior patterns that many women have told me makes them reconsider their field.

Re:FreeBSD switches the default root shell from csh to sh by vidarh on Wednesday October 20, 2021 @06:54PM (#28937896)
I'd consider just making a point of using "they" in a reply instead. Much less confrontational, and gets the idea through to those receptive to it.

It's worth calling out occasionally, such as correcting when the preferred pronoun is known to you, but otherwise it usually just details discussions.

Re:FreeBSD switches the default root shell from csh to sh by 1_player on Friday October 22, 2021 @04:11AM (#28954742)
"Eschew flamebait. Avoid unrelated controversies and generic tangents."

https://news.ycombinator.com/newsguidelines.html

Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @01:07PM (#28933144)
without certainty, prior probabilities suggest a technically inclined research leader would be male.
Re:FreeBSD switches the default root shell from csh to sh by throwawayboise on Wednesday October 20, 2021 @06:33PM (#28937691)
Without certainty, "he" should also be interpreted as gender-neutral.
Re:FreeBSD switches the default root shell from csh to sh by dTal on Thursday October 21, 2021 @08:49AM (#28943649)
That strongly carries the implication that male is the default, primary sex.

You're about 40 years late for that debate.

Re:FreeBSD switches the default root shell from csh to sh by azinman2 on Wednesday October 20, 2021 @02:25PM (#28934141)
And perpetuating these biases is what makes it feel lonely and not welcoming to be a woman in engineering.
Re:FreeBSD switches the default root shell from csh to sh by guilhas on Wednesday October 20, 2021 @06:01PM (#28937356)
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 by wolverine876 on Wednesday October 20, 2021 @07:09PM (#28938055)
> A woman in engineering should know that just because things have been probable in the past does not mean they will in the future

I don't think I would tell someone what they "should" know. That 'knowledge' seems like an unlikely possibility: I think it probable that significant discrimination against women in tech will (very unfortunately) continue for another generation, at least. One signal to me is that many reject it in every way: Denial, anger, etc.

Re:FreeBSD switches the default root shell from csh to sh by guilhas on Thursday October 21, 2021 @04:15PM (#28950275)
I agree I shouldn't have to tell anyone, because it is pretty standard knowledge "things change"

I would say there is no significant discrimination of women in tech

I would say that there is a significant lack of interest of women for tech

If anything there is positive discrimination in hiring for example, my manager already said if there are men and women applying, women will have the advantage. I guess they always had, it is just they are/were very fewer compared to men. Other example is my previous manager always available and keen to help the female colleagues, and busy for the male

The only thing you could point out would be biased education even though women outperform men in all areas from basic to university, which gives them more choice

And who can blame anyone, the majority of IT/Dev jobs are booring. Fill your head with technical knowledge, that in a couple of years is completely useless. Looks cool but useless. If I had the opportunity and and reasonable salary I would definitely change for something more in the areas of history philosophy politics...

Re:FreeBSD switches the default root shell from csh to sh by azinman2 on Wednesday October 20, 2021 @07:16PM (#28938107)
Just take a look at all the comments here. What you don't see is that I've been downvoted a ton as well, and in at least one comment that I think was removed, was called a cancer.
Re:FreeBSD switches the default root shell from csh to sh by wolverine876 on Wednesday October 20, 2021 @07:29PM (#28938209)
Remember that HN isn't representative of tech, and commenters aren't representative of readers. It's great that you speak up, and that you do it reasonably and respectfully.
Re:FreeBSD switches the default root shell from csh to sh by azinman2 on Wednesday October 20, 2021 @08:32PM (#28938735)
Thank you!
Re:FreeBSD switches the default root shell from csh to sh by cassonmars on Wednesday October 20, 2021 @07:04PM (#28937999)
Speaking from the other side of that perspective — being one of a few women in a CS program can be a very uncomfortable experience, especially a decade or two ago.
Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @06:09PM (#28937434)
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 by azinman2 on Wednesday October 20, 2021 @06:16PM (#28937528)
You did write they. Which is why I called it out when I saw what I presumed was a presumed he (apparently you wrote it in another comment, so I was wrong in this specific case... the threading/timeline made that unclear).

Regardless of your philosophy, the constant presumption of male hood is all over on HN if you're sensitive to watch for it. I don't know what your philosophy is, but the pattern absolutely is difficult for some people. So whether you ascribe to it or not, it is emblematic of the male-dominated culture that makes CS less appealing to women.

Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @06:43PM (#28937774)
I think this is an overly negative attitude.

Note that I've worked for multiple very successful computer scientist women. They have no tolerance for folks who sit around and complain about the unfairness. It's clear their confidence, ego, and drive, allowed them to succeed.

I slipped when I said he in the second comment. I normally prefer to not state the gender of people (to avoid the presumption of malehood) but I don't think it's as dire as you make out.

Re:FreeBSD switches the default root shell from csh to sh by wolverine876 on Wednesday October 20, 2021 @07:25PM (#28938174)
> I've worked for multiple very successful computer scientist women.

To make sure I read it right: I don't think you're suggesting that there are proportionally many non-male computer scientists, just that you've known a few.

> They have no tolerance for folks who sit around and complain about the unfairness. It's clear their confidence, ego, and drive, allowed them to succeed.

Isn't that a baseless insult? People can point out problems without 'sitting around', and they can 'sit around' without pointing out problems, and in fact the latter seems more likely to me: people who want to 'sit around' don't act in ways that create more emotional stress and work for themselves, and that threaten their employment. It's also a common response to shut down people who have legitimate concerns: Attack them, change the subject to them.

Accepting your characterization of these women you worked for, perhaps they are selected for those characteristics, because others could not survive. Many women have quietly endured discrimination, sexual harassment, and sexual assault as the only way to survive in their careers; look at the movie industry, for example. If your industry is selecting for 'success' like that, then there is something morally wrong (and you are losing a lot of talent). Discrimination, harassment, and assault should be stopped, and if someone points out that it's happening, that helps.

Also, many men succeed in tech without exceptional confidence, ego, and drive. The standard should be the same for non-men (just imagine being non-binary in tech).

> I think this is an overly negative attitude.

Why don't we see what women in tech think? Why talk about them in the third person? Probably because there are very few here on HN. Is that coincidence?

EDIT: Slight rewording, to minimize inflammation

Re:FreeBSD switches the default root shell from csh to sh by azinman2 on Wednesday October 20, 2021 @07:13PM (#28938086)
I'm trying to make sense of this. From the content I'm going to presume you're male, otherwise you'd be discussing from a female perspective instead of speaking for a select few based upon your understanding of their world.

In either case, whether or not their perspective is to want to make room for others doesn't mean that all women feel that way. I've had quite a few talk about this exact kind of experience including former mentors and managers of mine (I've also been lucky to work for some kick ass women). They tell me that they have to prove even more, dress/act more masculine, etc to be taken seriously. This isn't just one woman who has told me this either. This is quite a few over a 15 year period.

Staying gender neutral is an easy way to create room and make it feel less skewed, especially when the context is a senior leader (aka glass ceiling). I know you did with your original they, so I'm talking more generally here rather than this specific instance. The last year has had an outpouring of people's experiences being different in all these respects, and stories in business are easy to find. This week is also the Society of Women Engineer's conference where there's talks on navigating these kinds of environments. Perhaps you might find it interesting to attend and hear. It's available virtually.

I'm not making this out to be dire.. it's quite minor. But that doesn't mean minor things don't add up when you're an outsider. Being a gay man, I've seen that change in language over time to be less presumptive. I don't get offended when people ask about my wife (they'd be right the majority of the time!), but it is nice when people make room for my spouse to not be female.

Re:FreeBSD switches the default root shell from csh to sh by dTal on Thursday October 21, 2021 @08:56AM (#28943717)
"Successful women in computer science are universally thick skinned, confident and driven, and would not have succeeded if it were not for those qualities."

This appears to me to make the opposite point that you think it does.

Re:FreeBSD switches the default root shell from csh to sh by dekhn on Thursday October 21, 2021 @09:33AM (#28944097)
nope it doesn't. those are necessary but not sufficient skills for success in this field.
Re:FreeBSD switches the default root shell from csh to sh by dTal on Thursday October 21, 2021 @10:17AM (#28944768)
Really? And why is that? And for men too? I doubt that.

Your observation of a small number of successful women in computer science who aren't bothered by gender bias is entirely consistent with hordes of other women who've been chased away. This is a classic case of Survivorship Bias:

https://en.wikipedia.org/wiki/Survivorship_bias

Re:FreeBSD switches the default root shell from csh to sh by fernandotakai on Wednesday October 20, 2021 @06:39PM (#28937737)
in my native language, he is the neutral pronoun (it's a gendered language).

so, even when speaking english, i still, sometimes, use he as the the neutral pronoun (like calling an unknown user him).

what i mean is: your type of comment is actually quite weird. you don't know the person you are replying to. you don't know if english is their first, second, third or fourth language.

also, people make mistakes and instead of trying to catch someone in a "GOTCHA" moment, it's better to just ignore it.

Re:FreeBSD switches the default root shell from csh to sh by wolverine876 on Wednesday October 20, 2021 @07:04PM (#28938001)
None of us know who we are replying to, with rare exceptions. We reasonably assume people intend the English meaning of what they post, or communication would become very difficult. Nothing "weird" about it for me.
Re:FreeBSD switches the default root shell from csh to sh by billyjobob on Wednesday October 20, 2021 @07:21PM (#28938150)
When I went to school, which wasn't that long ago, 'he' was also the gender neutral pronoun for English.
Re:FreeBSD switches the default root shell from csh to sh by wolverine876 on Wednesday October 20, 2021 @07:27PM (#28938198)
Hmmm ... that was probably a decade or two into the prior century?
[dead]
Re:FreeBSD switches the default root shell from csh to sh by mlang23 on Wednesday October 20, 2021 @06:22PM (#28937582)
Source?
Re:FreeBSD switches the default root shell from csh to sh by agumonkey on Wednesday October 20, 2021 @10:29AM (#28931051)
That says a thing or too about habits. Was he pissed or was it just a light comment ?

I'd be sad to see an educated person refuse interesting new tricks (readline causes no regression or loss right ?)

Re:FreeBSD switches the default root shell from csh to sh by reacharavindh on Wednesday October 20, 2021 @11:16AM (#28931692)
It's delicate. The noob me chased after new tricks with much more enthusiasm than the current me. Over time, priorities change, and now I just want to get stuff done and for tools to get out of the way. I'd appreciate new tricks that bring quite a lot of benefit to my workflow, but the little tricks I'd rather let fly past me.

If the tools such as base environment changes way too often, I'd be annoyed as well - not because I don't know how to make the colours go away or set up the proper aliases - but the fact that I need to do it and pause my actual work.

Re:FreeBSD switches the default root shell from csh to sh by agumonkey on Wednesday October 20, 2021 @11:44AM (#28932104)
I totally understand that, I'm not a young mind anymore, and I get that most of these are pointless superficial tricks. I spend most of my days venting about the state of computing (especially since web2.0 came and replaced a lot of stuff with bloated regressions in many offices)

But I considered readline a good addition, not a waste of time and neurons.

ps: I stopped using zsh/fish, my emacs theme is the vanilla theme.. you forget about these 'improvements', for real tasks they don't matter.

Re:FreeBSD switches the default root shell from csh to sh by corndoge on Wednesday October 20, 2021 @12:21PM (#28932560)
I work half as fast without fish completions. matters to some people
Re:FreeBSD switches the default root shell from csh to sh by agumonkey on Wednesday October 20, 2021 @01:48PM (#28933627)
Maybe I shouldn't have included this comment after the `pointless superficial tricks` :)
Re:FreeBSD switches the default root shell from csh to sh by azinman2 on Wednesday October 20, 2021 @12:35PM (#28932762)
Fish truly is superior for productivity.
Re:FreeBSD switches the default root shell from csh to sh by vermaden on Wednesday October 20, 2021 @03:43PM (#28935254)
It has its downsides unfortunately.
Re:FreeBSD switches the default root shell from csh to sh by AceJohnny2 on Wednesday October 20, 2021 @04:36PM (#28936151)
It is one of the saddest self-realizations in my old age that I am no longer excited about learning/perfecting my tools.

But as you say, tools must get out of the way...

Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @10:33AM (#28931101)
he was pissed! and, really didn't like terminal colors when you ran 'ls' (so I showed how to unalias ls)

At this point I don't want to learn any new tricks, either. I'm sticking with bash for the rest of my life.

Re:FreeBSD switches the default root shell from csh to sh by arp242 on Wednesday October 20, 2021 @12:32PM (#28932704)
I would guess that he was mostly pissed that things "just changed" without being asked. While these sort of things like the up arrow seem like a no-brainer to many here, showing up for work on Monday and having everything just be different sucks. It's a bad experience, and I can't really blame him for being annoyed.

A lot of times people would be a lot more receptive if you show them "hey, you can use the up arrow like so if you want!" Then they can choose and adapt at their own pace if they want to, and they're in control of their own systems.

Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @06:13PM (#28937488)
I told him (this guy was the chair of the informatics department at a major biomedical company) that I understood if he didn't like color ls, because it could be hard to see some colors on a terminal, but that if he wanted to disable arrow key history he was just crazy. Some things are just progress.
Re:FreeBSD switches the default root shell from csh to sh by jdboyd on Wednesday October 20, 2021 @11:10AM (#28931585)
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.
Re:FreeBSD switches the default root shell from csh to sh by jolmg on Wednesday October 20, 2021 @11:19AM (#28931734)
I think the most noticeable difference is that `$foo` doesn't word-split unless you do `${=foo}`. Beyond that, I don't think one would notice they were using zsh instead of bash. In most ways, zsh is pretty much a superset of bash.
Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @11:27AM (#28931877)
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.
Re:FreeBSD switches the default root shell from csh to sh by handrous on Wednesday October 20, 2021 @11:47AM (#28932144)
> 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.

Re:FreeBSD switches the default root shell from csh to sh by tomc1985 on Wednesday October 20, 2021 @12:12PM (#28932464)
It still sticks pretty close to BSD. I am seeing a ton of (entirely natural) similarity since I started seriously playing with FreeBSD
Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @01:08PM (#28933155)
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.

Re:FreeBSD switches the default root shell from csh to sh by smhenderson on Wednesday October 20, 2021 @05:52PM (#28937244)
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 by dekhn on Wednesday October 20, 2021 @06:11PM (#28937456)
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.

Re:FreeBSD switches the default root shell from csh to sh by mprovost on Wednesday October 20, 2021 @11:47AM (#28932148)
Apple switched to zsh because newer versions of bash are licensed under GPLv3.
Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @02:02PM (#28933820)
I know what the reason is. I don't care. I use GPLv3 and have no interest in an OS that doesn't. You can run bash on windows or compile it yourself on any platform. microsoft even distributes it with windows.
Re:FreeBSD switches the default root shell from csh to sh by Firehawke on Wednesday October 20, 2021 @05:16PM (#28936755)
Not strictly correct. It's provided by whatever WSL distro you download, and that download comes from the distro as opposed to Microsoft.
Re:FreeBSD switches the default root shell from csh to sh by nonamenoslogan on Wednesday October 20, 2021 @06:34PM (#28937699)
Compile it yourself on MacOS, problem solved. Or install it with Homebrew?
Re:FreeBSD switches the default root shell from csh to sh by saghm on Wednesday October 20, 2021 @11:56AM (#28932265)
IIRC, MacOS had to ship with a fairly old version of bash by default because newer versions have a more copyleft license; I always assumed that their swap to zsh was because they wanted something both up to date and compatible in terms of the license (and the fact that most bash "just works" when you run it in zsh is a plus).
Re:FreeBSD switches the default root shell from csh to sh by gnubison on Wednesday October 20, 2021 @05:51PM (#28937233)
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 by agumonkey on Wednesday October 20, 2021 @10:54AM (#28931373)
what kind of research ? was it computing related or something really different ?

I'm quite shocked

I'm not 20 something either, I'm not chasing new shiny.. but a simple history access (arrows or search) is not an invasive disruptive toy feature..

alas

Re:FreeBSD switches the default root shell from csh to sh by dekhn on Wednesday October 20, 2021 @11:07AM (#28931551)
biomedical research, but the person I was helping "had written a kernel disk driver for VAX BSD back in the 80s" and I think they wanted things to more or less stay the same as BSD in the 80s. Which, as far as wishes go, isn't terrible.
Re:FreeBSD switches the default root shell from csh to sh by agumonkey on Wednesday October 20, 2021 @11:42AM (#28932081)
yeah I guess he earned the right to have his ways :)
Re:FreeBSD switches the default root shell from csh to sh by riffraff on Wednesday October 20, 2021 @04:54PM (#28936424)
As always, there's an xkcd on this

https://xkcd.com/1172/

Re:FreeBSD switches the default root shell from csh to sh by gerdesj on Wednesday October 20, 2021 @06:13PM (#28937481)
In my view all shells are quite good (for a given value of good).

If you have a problem with one or two shells but not all of them, then you might want to look within.