Today's article is mostly just about making sure folks are aware of ShellCheck.

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
8,607
Reaction score
7,353
Credits
69,966
You can install it locally, easily enough. I see questions here and there that are resolved by simply running it through ShellCheck, though not so many on this site.


Feedback is awesome.
 


JasKinasis

Well-Known Member
Joined
Apr 25, 2017
Messages
1,676
Reaction score
2,430
Credits
13,216
You can install it locally, easily enough. I see questions here and there that are resolved by simply running it through ShellCheck, though not so many on this site.


Feedback is awesome.
I’ve been using shellcheck for years. I’ve also set up vim to use shellcheck when writing/editing shell-scripts. Can’t remember offhand which plug-in it was. I set it up a long time ago. Very handy though!
 
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
8,607
Reaction score
7,353
Credits
69,966
I’ve been using shellcheck for years. I’ve also set up vim to use shellcheck when writing/editing shell-scripts. Can’t remember offhand which plug-in it was. I set it up a long time ago. Very handy though!

You can tie it in (linter - is that the right word?) with a ton of IDEs as well as VIM. It's a handy application and I mostly wrote the article to increase awareness as well as to provide a handy link for when I need to reference it.

It's a great tool, especially if you're new - or forgetful like me.
 

dcbrown73

Well-Known Member
Joined
Jul 14, 2021
Messages
365
Reaction score
339
Credits
3,224
I had never seen ShellCheck before. I usually just trample through the syntax errors and typos lol.

I will take a look at it next time I'm doing some type of shell scripting on a test box.
 

craigevil

Well-Known Member
Joined
Feb 24, 2021
Messages
415
Reaction score
414
Credits
2,862
OP
K

KGIII

Super Moderator
Staff member
Gold Supporter
Joined
Jul 23, 2020
Messages
8,607
Reaction score
7,353
Credits
69,966
Another interesting program for bash is thefuck.

Nice. I was previously unfamiliar with that one.

Hmm... I may have to do an article about it, 'cause then I'd have an excuse to use the word 'fuck' on the site. I'm pretty much just a giant five year old.
 
MALIBAL Linux Laptops

Linux Laptops Custom Built for You
MALIBAL is an innovative computer manufacturer that produces high-performance, custom laptops for Linux.

For more info, visit: https://www.malibal.com

Members online


Top