I would like to know the difference between using a Number Sign(#) and a Semicolon(;). I know that a hash is a comment and is ignored but I don't know why a semicolon is used or what it means. I see them both used in my motion.conf file as shown below.
# Tuner device to be used for capturing using tuner as source (default /dev/tuner0)
# This is ONLY used for FreeBSD. Leave it commented out for Linux
; tunerdevice /dev/tuner0
# The video input to be used (default: 8)
# Should normally be set to 0 or 1 for video/TV cards, and 8 for USB cameras
input 8
Are there any other characters that are used to make comments other than the #
and ;
that mean special thing?
;
in most programming languages means end of statement. I have never seen the used in config files unless terminating a statement block.#
is genreally used to comment in many programming languages and even markup and scripts. Possibly its a clever hack somebody used but you can see the confusion it has brought up. It is best to stick to convention and change that line to use a#
instead and request at source to do so also.;
used allot in config files, such as the Samba config file, along with#
too.