Take the 2-minute tour ×
Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems.. It's 100% free, no registration required.

In Java, we have Javadoc and some different styles when programming. In Python, there's pep8.

I'm creating some bash scripts for my own use, and would like to know from you, experienced bash users, if there's some kind of "pattern" like indentation, documentation for functions, etc. A book or a website with some references.

share|improve this question

closed as primarily opinion-based by Gilles, slm, jasonwryan, paraxor, Mat Oct 1 '13 at 3:57

Many good questions generate some degree of opinion based on expert experience, but answers to this question will tend to be almost entirely based on opinions, rather than facts, references, or specific expertise.If this question can be reworded to fit the rules in the help center, please edit the question.

1  
While it's not a standard by any means, I wrote a short article on template method pattern in BASH. There are also some BASH frameworks out there you might like or take inspiration from, just google for them. –  quickshiftin Jan 28 at 16:04
add comment

1 Answer 1

up vote 1 down vote accepted

An excellent answer to this question can be found here: design patterns or best practices for shell scripts

share|improve this answer
add comment

Not the answer you're looking for? Browse other questions tagged or ask your own question.