Java community use 4 spaces as the unit of indentation. 1Ruby community use 2 spaces that is generally agreed-upon. 2What's the standard for indentation in shell scripts? 2 or 4 spaces or 1 tab?
What's the standard for indentation in shell scripts?
shell script;standard;indentation
There is no standard indentation in shell scripts that matters.Slightly less flippant answer:Pick a standard in your team that you can all work to, to simplify things.Use something your editor makes easy so you don't have to fight to stick to the standard.