From nobody@FreeBSD.org  Sun Nov  7 10:00:51 2004
Return-Path: <nobody@FreeBSD.org>
Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125])
	by hub.freebsd.org (Postfix) with ESMTP id 706C416A4CE
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  7 Nov 2004 10:00:51 +0000 (GMT)
Received: from www.freebsd.org (www.freebsd.org [216.136.204.117])
	by mx1.FreeBSD.org (Postfix) with ESMTP id DD3DD43D55
	for <freebsd-gnats-submit@FreeBSD.org>; Sun,  7 Nov 2004 10:00:19 +0000 (GMT)
	(envelope-from nobody@FreeBSD.org)
Received: from www.freebsd.org (localhost [127.0.0.1])
	by www.freebsd.org (8.12.11/8.12.11) with ESMTP id iA7A0JHr039955
	for <freebsd-gnats-submit@FreeBSD.org>; Sun, 7 Nov 2004 10:00:19 GMT
	(envelope-from nobody@www.freebsd.org)
Received: (from nobody@localhost)
	by www.freebsd.org (8.12.11/8.12.11/Submit) id iA7A0J1U039954;
	Sun, 7 Nov 2004 10:00:19 GMT
	(envelope-from nobody)
Message-Id: <200411071000.iA7A0J1U039954@www.freebsd.org>
Date: Sun, 7 Nov 2004 10:00:19 GMT
From: Mark Rowlands <mark.rowlands@mypost.se>
To: freebsd-gnats-submit@FreeBSD.org
Subject: Clarify syntax for use of tables with ipfw 
X-Send-Pr-Version: www-2.3

>Number:         73638
>Category:       docs
>Synopsis:       ipfw(8): Clarify syntax for use of tables with ipfw
>Confidential:   no
>Severity:       non-critical
>Priority:       low
>Responsible:    trhodes
>State:          closed
>Quarter:        
>Keywords:       
>Date-Required:  
>Class:          doc-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Nov 07 10:10:26 GMT 2004
>Closed-Date:    Fri Nov 03 09:01:28 GMT 2006
>Last-Modified:  Fri Nov  3 09:10:21 GMT 2006
>Originator:     Mark Rowlands
>Release:        4-10
>Organization:
Qbranch AB
>Environment:
FreeBSD pcmarpxy.mine.nu 4.10-STABLE FreeBSD 4.10-STABLE #1: Wed Oct  6 21:27:47 CEST 2004     root@pcmarpxy.mine.nu:/usr/obj/web1/src/sys/MARK  i386
     
>Description:
man 8 ipfw describes syntax for table use in ipfw like this:-

addr: [not] {any | me | table(number[,value]) | addr-list | addr-set}
..
table(number[,value])

Running under bash / sh / csh 
ipfw add 2 deny ip from table(1) to me in via xl1 generates a syntax error. 

the table(x,y) entry seems to require quotes under most shells.

I feel the man page should indicate this
>How-To-Repeat:
sh# ipfw add 201 deny ip from any to table(2) in via xl1
Syntax error: "(" unexpected

csh# ipfw add 201 deny ip from any to table(2) in via xl1
Badly placed ()'s.

bash# ipfw add 201 deny ip from any to table(2) in via xl1
Syntax error: "(" unexpected
  
>Fix:
Add warning to man page that "table(x,y)" may well be required
dependant on particular shell...   
>Release-Note:
>Audit-Trail:
State-Changed-From-To: open->patched 
State-Changed-By: trhodes 
State-Changed-When: Mon Oct 9 22:12:47 UTC 2006 
State-Changed-Why:  
I added a note to the end of the manual page, under WARNINGS; however, 
I'm not sure how I feel about each manual page having this type of note. 


Responsible-Changed-From-To: freebsd-doc->trhodes 
Responsible-Changed-By: trhodes 
Responsible-Changed-When: Mon Oct 9 22:12:47 UTC 2006 
Responsible-Changed-Why:  
Over to me. 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73638 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/73638: commit references a PR
Date: Mon,  9 Oct 2006 22:12:30 +0000 (UTC)

 trhodes     2006-10-09 22:12:09 UTC
 
   FreeBSD src repository
 
   Modified files:
     sbin/ipfw            ipfw.8 
   Log:
   Add a note about rule syntax compared to the shell used so users do not get
   frustraited when:
   ipfw add 201 deny ip from any to table(2) in via xl1
   returns "Badly placed ( )'s"
   
   PR:     73638
   
   Revision  Changes    Path
   1.197     +4 -0      src/sbin/ipfw/ipfw.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
State-Changed-From-To: patched->closed 
State-Changed-By: trhodes 
State-Changed-When: Fri Nov 3 09:00:54 UTC 2006 
State-Changed-Why:  
Changes merged into RELENG_6, thanks! 

http://www.freebsd.org/cgi/query-pr.cgi?pr=73638 

From: dfilter@FreeBSD.ORG (dfilter service)
To: bug-followup@FreeBSD.org
Cc:  
Subject: Re: docs/73638: commit references a PR
Date: Fri,  3 Nov 2006 09:00:55 +0000 (UTC)

 trhodes     2006-11-03 09:00:19 UTC
 
   FreeBSD src repository
 
   Modified files:        (Branch: RELENG_6)
     sbin/ipfw            ipfw.8 
   Log:
   Paritially sync with CURRENT, kills hard sentence breaks, fixes some markup.
   
   MFC: 1.197
     Add a note about rule syntax compared to the shell used so users do not get
     frustraited when:
     ipfw add 201 deny ip from any to table(2) in via xl1
     returns "Badly placed ( )'s"
   
     PR:     73638
   
   Approved by:    re (hrs)
   
   Revision    Changes    Path
   1.175.2.10  +9 -3      src/sbin/ipfw/ipfw.8
 _______________________________________________
 cvs-all@freebsd.org mailing list
 http://lists.freebsd.org/mailman/listinfo/cvs-all
 To unsubscribe, send any mail to "cvs-all-unsubscribe@freebsd.org"
 
>Unformatted:
