i didnt care about how i wrote my bash scripts, coz i know theyd ultimately be used just by myself. but for the past few day, i’ve been working on this project, mk-blog which uses some bash scripts, there are chances that others might look at them. besides in work they’re asking me maintain a server. so why not learn the standards. but i couldn’t find anything good online (i’m gonna blame my search engine lol). so…
i’d appreciate redirections to (official or community) bash coding standards
There is no single Bash standard to follow, only a few guidelines. One way you can check for some basic errors and formatting would be using an editor with support for Bash (in best case with a builtin LSP). At the end, you have to find your style and coding standards or adapt what others do if you want work with them or edit their files.
${variable}
and some other things.BTW the mk-blog link is 404 for me.
The link is incorrect. It should point to https://codeberg.org/t0mri/mk-blog, not https://codeberg.org/t0mri/mk-blom.
I assume you opened the link. Did you read that projnct intro by any chance? Im struggling to name the project. Some suggestion can help.
Thanks.
Yeah I came across that google’s guide, but I skipped it when I found out its from google. And thanks for informing about the link, I made a typo