[TUHS] tabs vs spaces - entab, detab

Greg 'groggy' Lehey grog at lemis.com
Fri Mar 5 07:24:59 AEST 2021

On Thursday,  4 March 2021 at 10:52:30 -0600, Will Senn wrote:
> OK. So, I've been trying to decide (for the last time, I swear) whether
> to use tabs or spaces in my code... I did a quick pulse-check on the
> state of argument and it appears to be alive and well in 2021.

FWIW, FreeBSD's style(9) man page

   Indentation is an 8 character tab.  Second level indents are four

I've always used 8 character tabs (though in my own code I don't stick
to style(9)).  As others have commented, it's the Unix standard, and
the confusion between tabs and spaces is bad enough without changing
the relationship.

Sent from my desktop computer.
Finger grog at lemis.com for PGP public key.
See complete headers for address and phone numbers.
This message is digitally signed.  If your Microsoft mail program
reports problems, please read http://lemis.com/broken-MUA
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 163 bytes
Desc: not available
URL: <http://minnie.tuhs.org/pipermail/tuhs/attachments/20210305/875df262/attachment.sig>

More information about the TUHS mailing list