Syntax Error

Travis H. solinym at gmail.com
Sat Aug 19 09:49:44 UTC 2006


On 8/18/06, beno - <purabachata at yahoo.com> wrote:
> 14. email_ports="{" $smtp_ports $pop3_ports "}"
> 15. all_http_ports="{" $http_ports $https_ports "}"
> 16. tcp_ports= "{" $ssh_ports $ftp_ports $all_http_ports $imap_ssl_ports "}"

You're trying to nest lists, which doesn't work.

> 24. shadday_ip_addresses="70.19.0.0/17"
> 25. ssh_ip_addresses="{" $shinjiru_ip_addresses $directv_ip_addresses  $shadday_ip_addresses "}"

> It appears to not like my using "$all_http_ports" in line 16 and one of  the three in the last line (which the machine chooses to call 24 but it  is actually referring to 25). Why?

This is just a guess, but perhaps the error on line 16 meant it didn't
increment the line counter, so the last line number is off-by-one.  In
any case, you did the same thing here.  Get rid of the nested braces
(remember, this is textual expansion) and you should be fine.
-- 
"If you're not part of the solution, you're part of the precipitate."
Unix "guru" for rent or hire -><- http://www.lightconsulting.com/~travis/
GPG fingerprint: 9D3F 395A DAC5 5CCC 9066  151D 0A6B 4098 0C55 1484


More information about the freebsd-pf mailing list