DEV Community

sunbingfeng
sunbingfeng

Posted on

Have you ever tried any bash frameworks?

These days, Bash Infinity reached the top 10 repo in github trends.

I have not ever tried object-oriented bash programming before, so how about your opinions on bash frameworks?

Top comments (6)

Collapse
 
sadpixel profile image
Ishan

Good god bash has frameworks now?

Collapse
 
tux0r profile image
tux0r

My opinion remains that writing shell scripts which are not portable are shell scripts which are broken. If you ever find yourself having to use bash-specific features in your shell scripts, maybe you'd better use Perl instead.

Collapse
 
sunbingfeng profile image
sunbingfeng

At the beginning, people rarely use them. And scripts based on them indeed are not portable enough.

But it's easier writing bash code, and the resulting bash programs are much more readable.

So I think it may have its seat in the near future.

Collapse
 
adhocore profile image
Jitendra

There is also test framework for bash called bats :)

Collapse
 
ben profile image
Ben Halpern

Bash Infinity is what finally bumped dev.to from the top spot on GitHub trends a couple days ago.

But it looks very cool, so deserving I'd say.

Collapse
 
sunbingfeng profile image
sunbingfeng

Cool indeed, and I wish many people could have a try.