[syslinux] comment syntax

Gene Cumm gene.cumm at gmail.com
Tue Aug 31 05:39:10 PDT 2010


On Tue, Aug 31, 2010 at 05:35, Ferenc Wagner <wferi at niif.hu> wrote:
> Gene Cumm <gene.cumm at gmail.com> writes:
>
>> On Mon, Aug 30, 2010 at 00:33, Prof S W Damle <swdamle at bsnl.in> wrote:
>>
>>>  ##  menu label ^0. xxxx  -->This IS displayed
>>
>> Of course.  Bad syntax.  You _must_ use "# " to make a comment and may
>> not use "## " as is stated in doc/syslinux.txt
>
> Why is this, btw?  It's rather counterintuitive.  Is there a reason
> against letting a single # turn the rest of the line into a comment,
> as usual in some other scripting languages?
> --
> Cheers,
> Feri.
>

Reasoning?  I'm not sure.  All I know for certain is the
documentation.  There is probably a reasoning but it probably goes
back at least 8+ years (and probably to the beginning of Syslinux).

>From doc/syslinux.txt:
# comment
	A comment line.  The whitespace after the hash mark is mandatory.


Note "mandatory".

-- 
-Gene




More information about the Syslinux mailing list