Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I can't understand why in the file /etc/samba/smb.conf leading spaces are used in parameter names, while in man smb.conf stated "Leading, trailing and internal whitespace in section and parameter names is irrelevant."

For example, default settings:

[printers]
   comment = All Printers
   browseable = no

Three spaces before the word "comment"

share|improve this question

migrated from stackoverflow.com Jun 19 '12 at 21:03

This question came from our site for professional and enthusiast programmers.

This is done for readability, just like whitespace is used in programming languages like C: you can immediately see that the comment belongs to the section printers.

share|improve this answer
    
Thanks. I am, it turns out, incorrectly translated the word irrelevant, and thought that Leading, trailing and internal whitespace are prohibited =) – Alex Bomb Jun 19 '12 at 9:21

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.