Every story and comment from the Hacker News API, in a layout borrowed from 2001.
A comment on Debugging Bash Like a Sire. Parent comment
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.
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.