[syslinux] macros in configuration files
Geert Stappers
stappers at stappers.nl
Thu Sep 18 05:04:15 PDT 2008
Op 20080918 om 00:33 schreef Tobias Abt:
> H. Peter Anvin schrieb:
> > Thinking about this some more, I think it's time to add a simple macro
> > system for configuration files. The internals have been streamlined
> > enough by now that it should be relatively easy to do -- there has been
> > a *lot* of work behind the scenes which isn't user visible.
> >
> > The main question is what syntax to use that isn't likely to step on
> > something else. I think my current inclination is to use the Unix-like
> > ${...} with the braces mandatory to reduce the likelihood of conflict.
> >
> > Opinions, anyone?
>
> ACK! Standard procedure, therefore one less thing to learn... :-))
Ah, now I understand "macro", it is a "variable".
Unix shell uses an imho inconsequent syntax
FILENAME=hosts
DIRECTORY=/etc/
FULLPATH=${DIRECTORY}${FILENAME}
I hope that syslinux get a consequent syntax like
${FILENAME}=hosts
${DIRECTORY}=/etc/
${FULLPATH}=${DIRECTORY}${FILENAME}
where allways the ${...} is used.
Cheers
Geert Stappers
More information about the Syslinux
mailing list