|
|
Subscribe / Log in / New account

Bash 5.2 released

Bash 5.2 released

Posted Sep 28, 2022 20:48 UTC (Wed) by k8to (guest, #15413)
In reply to: Bash 5.2 released by maxfragg
Parent article: Bash 5.2 released

Yeah, I I have to agree. I've deployed a lot of minimum Bourne compatability scripts to run across 6 or 7 Unix variants, and it was a lot less painful to do system instrumentation fact gathering in shell than it would have been in c, it was still a lot of sunk time to properly validate them, even with a decade of accumulated knowledge. And even there I couldn't really rely on every aspect of a posix environment being available.

Everything I've done since, just putting bin/bash at the script start was fine. They were only ever going to run on Linux in cloud land, and usually the startup overhead of bash was overshadowed by being able to kill off lots of forks.

That said, I generally prefer the pain of automating in python so that failures are explicitly caught and fixed by default. Shell for me is more of a tool for doing immediate work. Testing some park of things, doing something 100 times while sniffing for failures that probably makes no sense to put on a test, etc, ie scripts you throw away. And for that, bash and zsh type things still feel good.


to post comments

Bash 5.2 released

Posted Sep 29, 2022 4:17 UTC (Thu) by NYKevin (subscriber, #129325) [Link] (2 responses)

I sometimes find shells useful in contexts where the silly thing really does need to run as a subprocess, and then I really do need to parse its stdout, rather than having a nice sensible library binding that I can just call into. Yes, I know Python has subprocess etc. and other languages have the same, but shell pipelines are just so much more expressive and concise for that sort of thing...

Bash 5.2 released

Posted Sep 29, 2022 19:26 UTC (Thu) by wtarreau (subscriber, #51152) [Link] (1 responses)

Plus shell scripts can be fixed / adapted by anyone.

Bash 5.2 released

Posted Sep 30, 2022 13:13 UTC (Fri) by Wol (subscriber, #4433) [Link]

> Plus shell scripts can be fixed / adapted by anyone.

You may be a bash wizard, but please don't speak for the rest of us :-)

Cheers,
Wol


Copyright © 2025, Eklektix, Inc.
Comments and public postings are copyrighted by their creators.
Linux is a registered trademark of Linus Torvalds