Question for understanding

I took a look at my pacman.conf (it is probably still in the same state as it was after the new installation). I noticed a difference in the commented out lines. I don’t know anything about programming, so my question is: In some commented out lines, the # is at the beginning of the line (which, as I understand it, comments out the line) and then there is a space before the content of the line begins. For other lines, the # is immediately followed by the content, without a space in between. What is the difference, what does it do? I know that a space acts as a separator, but what for after the #?

# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir     = /
#DBPath      = /var/lib/pacman/
#CacheDir    = /var/cache/pacman/pkg/
#LogFile     = /var/log/pacman.log
#GPGDir      = /etc/pacman.d/gnupg/
#HookDir     = /etc/pacman.d/hooks/
HoldPkg     = pacman glibc
#XferCommand = /usr/bin/curl -L -C - -f -o %o %u
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u
#CleanMethod = KeepInstalled
#UseDelta    = 0.7
Architecture = auto

# Pacman won't upgrade packages listed in IgnorePkg and members of IgnoreGroup
#IgnorePkg   =
#IgnoreGroup =

#NoUpgrade   =
#NoExtract   =

# Misc options
#UseSyslog
Color
ILoveCandy
#NoProgressBar
#CheckSpace
VerbosePkgLists
DisableDownloadTimeout
ParallelDownloads = 5

# By default, pacman accepts packages signed by keys that its local keyring
# trusts (see pacman-key and its man page), as well as unsigned packages.
SigLevel    = Required DatabaseOptional
LocalFileSigLevel = Optional
#RemoteFileSigLevel = Required

and so on …

Please enlighten me as to what is correct.

It makes no difference at all when there is a space there or not.

However, in this case, the lines with spaces are descriptive text and the lines without are commented out settings lines.

2 Likes

OK, understood, thx @dalto :ok_hand:t2:

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.