On Thu, Dec 22, 2022 at 12:04 PM Jason McIntyre <j...@kerhand.co.uk> wrote:

> On Thu, Dec 22, 2022 at 11:49:09AM -0800, Philip Guenther wrote:
> > On Thu, Dec 22, 2022 at 11:33 AM Jason McIntyre <j...@kerhand.co.uk>
> wrote:
> > ...
> >
> > > i have to say, i'm getting nowhere with this SYNOPSIS:
> > >
> > >          netstat -r [-AFu] [-f address_family] [-M core] [-N system]
> > >                  [-p protocol] [-T rtable]
> > >
> > > i mean the combination of -r and -p. is it wholly redundant?
> > >
> >
> > Yeah, looking now I think -p is ignored when -r is supplied.  I guess I
> > missed that when we worked out rev 1.88 of netstat.1
> >
> > Philip
>
> so i'd rather deal with that separately. diff below to remove -p
> from the -r line.
>
> ok?
>
> jmc
>
> Index: main.c
> ===================================================================
> RCS file: /cvs/src/usr.bin/netstat/main.c,v
> retrieving revision 1.123
> diff -u -p -r1.123 main.c
> --- main.c      4 Dec 2022 23:50:48 -0000       1.123
> +++ main.c      22 Dec 2022 20:01:56 -0000
> @@ -485,8 +485,7 @@ usage(void)
>             "       netstat -s [-gru] [-f address_family] [-p protocol]\n"
>             "       netstat -g [-lnu] [-f address_family]\n"
>             "       netstat -R\n"
> -           "       netstat -r [-AFu] [-f address_family] [-M core] [-N
> system] [-p protocol]\n"
> -           "               [-T rtable]\n"
> +           "       netstat -r [-AFu] [-f address_family] [-M core] [-N
> system] [-T rtable]\n"
>             "       netstat -P pcbaddr [-v] [-M core] [-N system]\n");
>         exit(1);
>  }
> Index: netstat.1
> ===================================================================
> RCS file: /cvs/src/usr.bin/netstat/netstat.1,v
> retrieving revision 1.96
> diff -u -p -r1.96 netstat.1
> --- netstat.1   22 Dec 2022 07:23:29 -0000      1.96
> +++ netstat.1   22 Dec 2022 20:01:56 -0000
> @@ -72,7 +72,6 @@
>  .Op Fl f Ar address_family
>  .Op Fl M Ar core
>  .Op Fl N Ar system
> -.Op Fl p Ar protocol
>  .Op Fl T Ar rtable
>  .Nm
>  .Fl P Ar pcbaddr
>

ok guenther@

Reply via email to