Formatting scripts in CTDB source code (was Re: [PATCHES] Various CTDB bug fixes and improvements)

Martin Schwenke martin at
Wed Jan 13 03:57:40 UTC 2016

On Tue, 12 Jan 2016 19:17:34 +0100, Michael Adam <obnox at>

> - It would be *SOOO* great if we could stop using
>   that 8-char tab + 4 chars as half tab indentation!!! :-)

Sold!  :-)

I think this is historical.  Most people hacking the scripts (including
me) have been Emacs users and that is the default Emacs indentation for
shell scripts.

As long as nobody complains I'll switch to tabs and update code as
it gets edited.

As per:

I'll make case statement labels line up with the "case" keyword to
avoid crazy amounts of indentation.  The author of that page seems to
suggest that this makes the indentation compatible with VIM.

For the record, I'm using the following in my ~/.emacs:

(setq-default sh-basic-offset 8
	      sh-indentation 8
	      sh-indent-for-case-label 0
	      sh-indent-for-case-alt '+)

peace & happiness,
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 173 bytes
Desc: OpenPGP digital signature
URL: <>

More information about the samba-technical mailing list