Sample Header Ad - 728x90

What's the standard for indentation in shell scripts?

83 votes
4 answers
95556 views
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?
Asked by Arturo Herrero (2516 rep)
May 23, 2012, 09:27 AM
Last activity: Jul 3, 2025, 03:15 PM