[syslinux] macros in configuration files
H. Peter Anvin
hpa at zytor.com
Thu Sep 18 08:48:23 PDT 2008
Geert Stappers wrote:
>
> 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.
>
Actually, there is a good reason for doing it the first way. It let you
do macro expansion on the left hand side, too.
-hpa
More information about the Syslinux
mailing list