News for hackers. Stuff that matters.
Re:Debugging Bash Like a Sire by sgarland on Monday July 21, 2025 @09:23AM (#44634809)
> no modules

Ish. You can source whatever files you want, so if you split up your functions into logical directories / files, you can get modules (-ish).

> no tests

BATS [0].

[0]: https://github.com/bats-core/bats-core

> I've successfully refactored messy python code in the past, but with bash I've had no idea where to even start.

I say this with all kindness: you probably need to know more bash before you can safely refactor it. It is a very pointy and unforgiving language.

There are no comments on this comment yet.