unlang parsing

Alan DeKok aland at deployingradius.com
Tue Feb 3 15:16:59 CET 2009


Chris Moules wrote:
> I have just come across an oddity in the unlang parsing. I though that I
> had some form of logic error, but it turned out to be
> white space.
> 
> I had some unlang code, like the following:
...
>                 } else {

  That won't work.  The parser is *very* bad.

> Restructuring the code the to following, however, works fine.
...
>                 }
>                 else {

  Yes.  That will work.

  It's not clearly documented, but the examples and "unlang" man page do
say "else {", and not "} else {"

  Alan DeKok.



More information about the Freeradius-Devel mailing list