Or any other alternate shells that aren’t bash?
I’ve used powershell in previous jobs and if you learn it really well I cannot deny it is super powerful.
For a college project, a friend of mine somehow made a hexadecimal file dumper with it, with formatting and everything (think like what you would see in wireshark) in one, reasonably long, line of powershell.
However I’m just not a big fan of it personally for syntactical reasons (even with the syntax being super logical) and much prefer bash, or other unix-like native shells. I’ve been thinking about taking
zsh
for a spin recently to see what it’s like.I use powershell for some scripting. I’ve been using .net/powershell forever and I know it better than python. If bash can’t handle it in a few lines, and I don’t have to use python, I’ll go powershell.
I used to use fish but I’m learning Unix right now and am trying to use only defaults so I can learn freebsd the way it exists on a dvd, so right now I’ve been using the Bourne shell
If you are using FreeBSD, you are probably using the Almquist Shell.
https://en.m.wikipedia.org/wiki/Almquist_shell
BSD has not used Bourne since the 90’s. Bash is of course the “Bourne Again Shell”.
For Linux fans, “dash” is the (Debian Almquist Shell). It is the Linux version of the BSD shell. Dash is the default /usr/bin/sh in Debian and Ubuntu I think. So, pretty close to the same shell as FreeBSD.
That’s the one!
SO much of the documentation I’ve seen refers to the Bourne shell I just assumed thats what I was using!
I use both fish and zsh
somehow
That’s… a big gap. I think I’d just be confused all the time if I had to switch between them.
I mean, missing commands say that it’s zsh but everything else says that it’s fish.
Only when I’m doing MS shit for work. Otherwise I find it kind of a pain. I get that some of it’s ideas are nice, but functionally it doesn’t actually do anything for me on unixy systems that bash doesn’t so I don’t. I’m not going to install it on all my servers so using it for scripting doesn’t make sense and I do more Linux admin than MS.
Basically no one is using powershell on Linux. zsh is popular and i’m using fish.
only for extraordinarily cursed situations where games need it in wine/proton
only when dealing with azure for work. otherwise bash/python work just fine and have for me for the last 30 odd years.
What’s wrong with bash? Something missing or not to your liking? It can be configured
Manipulating data in bash is bad.
Base 64 encode all your array variables then decode them when needed
Real
It has atrocious error handling, and there’s no reasons why arrays should only be 1D.
It is not always Bash. Zsh comes as a default with some Arch based distros like Manjaro (xfce) and Garuda, plus Kali of course. But what is the point to use PowerShell in Linux? … Azure, Exchange or Windows servers or something else I don’t get?
Zsh is nice, particularly with a couple of plugins
Does zsh count?
i ws forced to do it recently and noticed that they enforce usage of black terminal, like it is in the command prompt in windows.
it was a pain in the ass to keep switch colors just to touch that one powershell module and my first priority to replacing with with a python equivalent. they still think that the powershell module is being used, but it’s no longer capable of working in this environment and they’re going to have to spend $$$ to make it useable because i forsee LOT of difficulty and delays in bringing it up to spec.
nushell is pretty cool
I didn’t know powershell was an option on Linux.