Problem with case / else: in filters
Ondrej Zajicek
santiago at crfreenet.org
Thu Dec 30 21:13:27 CET 2010
On Thu, Dec 30, 2010 at 03:01:26PM +0100, Jerome Durand wrote:
> Hi all,
>
> I'm runnning bird6 version 1.2.5 and bird version 1.2.5 and I'm
> experiencing a problem:
>
> Bird returns a syntax error at the "else:" line while bird6 tells me
> it's okay. Is this a well known bug or am I doing somethinig wrong? Do
> you see any workaround?
For me, it works as expected - with "else:" in IPv4 version.
In your example (below) you are missing closing "}".
But perhaps that is just a copy/paste error.
> case arg1 {
> 2: print "two"; print "I can do more commands without {}";
> 3 .. 5: print "three to five";
> else: print "something else";
>
> Note that I got the version via apt-get on Debian...
--
Elen sila lumenn' omentielvo
Ondrej 'SanTiago' Zajicek (email: santiago at crfreenet.org)
OpenPGP encrypted e-mails preferred (KeyID 0x11DEADC3, wwwkeys.pgp.net)
"To err is human -- to blame it on a computer is even more so."
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://trubka.network.cz/pipermail/bird-users/attachments/20101230/f3ad135e/attachment-0001.asc>
More information about the Bird-users
mailing list