A new version of the AWK book is coming out! In 2023!
https://awk.dev

#unix #awk

The AWK Programming Language, Second Edition

Mac ships with One True Awk, but it's a few years behind:
% awk --version
awk version 20200816

sudo port install nawk
% nawk --version
awk version 20211208

Well, that's a little better, tho there's patches from 2023 in the repo. I just don't wanna pull, build, have to remember to repull & build sometimes.

#macos #protip #awk #unix

@mdhughes Yeah, #Apple did yeet #bash with it's change to #GPLv3 from #macOS...
@kkarhan That's also a security measure, post Shellshock. Nobody should use bash! Literally any other shell (not csh) is better, I went to zsh but whatever.

@mdhughes that was well before #ShellShock and #Apple does keep it's #unix components rather dated...

Granted, I wished #bash would get yeeted and #fish would be the default shell on #Linux, cuz "installing another shell" is a big no-no on production systems...

@kkarhan Unlikely ever to happen since a POSIX-compatible shell is always going to be a requirement in practice. Dropping bash for some other `sh`, and additionally installing fish, seems more likely.

But then there's no reason you can't install fish on systems you manage anyway.

@benjamineskola sadly I'm kinda forced to use #bash on #production aka. #WageWork.

But yeah, I really want to see a #FSF/#GNU-free #Linux distro...
@chimera_linux aims to do that...

@kkarhan @benjamineskola @chimera_linux Bash really is the new #ksh, isn’t it.
@josephholsten @kkarhan ksh is still alive and well last I checked.
@benjamineskola @kkarhan Yep! ksh93u+m is my default shell. The real one, not a pdksh. But it’s not exactly “cool” like zsh, fish.
@benjamineskola @kkarhan And I more meant that at Linux shops, people mostly write shell scripts in bash, like they used to write them in ksh on commercial unixes.

@josephholsten @benjamineskola Yeah, because #bash is kinda the de-facto standard for #Linux not only as per #LSB but also because it's compatible with the original #sh.

#zsh would be the next best option to keep that, whilst #fish yeets any compatibility in favour of user-friendlyness and cleanness as languague!

https://refspecs.linuxfoundation.org/lsb.shtml

LSB Specifications

@kkarhan @josephholsten no, I don’t think zsh is a better option for scripting than bash. Either stick with posix sh, or use a real programming language.

Zsh is fine for interactive use and so is fish but neither is really a solution for scripting.

@benjamineskola @josephholsten Personally, I do think that a #shell should make using itself a breeze [something #fish aims for] and be useful for scripting [the only thing #dsh is good at because it's not designed to be interactive to begin with]...

Based off a lot of feedback from others like @fuchsiii, I think #zsh is a good shell too.

I wished #bash would be replaced with #fish at least for the user to utilize per default, as bash is kinda a hard-to-replace dependendency on #Linux...

@kkarhan @benjamineskola @josephholsten @fuchsiii If you're up for an adventure, there's also #qbsh

https://qbsh.org

GitHub - vwbusguy/qbsh: Quick Basic Shell

Quick Basic Shell. Contribute to vwbusguy/qbsh development by creating an account on GitHub.

GitHub

@vwbusguy @benjamineskola @josephholsten @fuchsiii personally, I've also had some use time with #ash on #Busybox but that's just because I have on occasions dealt with #embedded devices and have a copy of #Floppinux.

And yes, I'm still intrigued on the idea of a #1440kB distro that one can blindly autoboot into and that automatically opens up #SSH to allow for remote login if not automatically opens it's own SSH tunnel.

Kinda like #XeLL...