Java community use 4 spaces as the unit of indentation. 1
Ruby community use 2 spaces that is generally agreed-upon. 2
What's the standard for indentation in shell scripts? 2 or 4 spaces or 1 tab?
|
|
There is no standard indentation in shell scripts that matters. Slightly less flippant answer:
|
||||
|
|
|
I've never encountered shell specified style guide but for bash programming this is the most popular one: http://lug.fh-swf.de/vim/vim-bash/StyleGuideShell.en.pdf
|
|||
|
|