Shell script indentation

Jeremy Allison jra at samba.org
Thu Feb 10 19:30:54 UTC 2022


On Thu, Feb 10, 2022 at 08:27:30PM +0100, Andreas Schneider via samba-technical wrote:
>Hello,
>
>our shell scripts are a mess and we should try to fix this. So the first
>questions is what do we want to use for indentation.
>
>Most of the Samba scripts use 4 spaces.
>CTDB uses tabs (tabwidth: 8).
>
>We need to settle on one. Should we first collect arguments or directly start
>a vote?
>
>4 spaces or tabs (tw: 8)

Oh, so you want a religious war huh :-) :-) ? Personally,
I won't chose as I want to remain agnostic. The only thing
I'd like to do is to have a git-hook that will refuse to
push changes to scripts that don't match whatever is
decided upon so we maintain consistency.



More information about the samba-technical mailing list