Re: smtpctl(8) - 'sh s' does not appear to be an unambiguous prefix

2015-08-16 Thread Jason McIntyre
On Sun, Aug 16, 2015 at 11:00:42PM +0100, Larry Hynes wrote:
 From the man page:
The smtpctl program controls smtpd(8). Commands may be abbreviated
to the minimum unambiguous prefix; for example, sh s for show stats.
 
 What I would expect:
# smtpctl sh s
stats output
 
 What actually happens:
# smtpctl sh s
possibilities are:
show mta
show envelope
show hoststats
show message
show queue
show hosts
show relays
show routes
show stats
show status
 
 I'm guessing that 'sh s' became ambiguous with the addition of 'smtpctl
 show status' in Revision 1.47 in Feb 2014. Or I don't understand what the
 man page is trying to convey.
 
 The following patch replaces 'sh s' with 'sh ro' for 'show routes'
 which, as far as I can tell, is unambiguous.
 

fixed, thanks.
jmc

 
 Index: smtpctl.8
 ===
 RCS file: /cvs/src/usr.sbin/smtpd/smtpctl.8,v
 retrieving revision 1.50
 diff -u -p -r1.50 smtpctl.8
 --- smtpctl.8 27 Jul 2015 18:48:05 -  1.50
 +++ smtpctl.8 16 Aug 2015 21:57:48 -
 @@ -33,9 +33,9 @@ The
 program controls
 .Xr smtpd 8 .
 Commands may be abbreviated to the minimum unambiguous prefix; for example,
 -.Cm sh s
 +.Cm sh ro for
 -.Cm show stats .
 +.Cm show routes .
 .Pp
 The
 .Nm mailq



smtpctl(8) - 'sh s' does not appear to be an unambiguous prefix

2015-08-16 Thread Larry Hynes

From the man page:

   The smtpctl program controls smtpd(8). Commands may be abbreviated
   to the minimum unambiguous prefix; for example, sh s for show stats.

What I would expect:
   # smtpctl sh s
   stats output

What actually happens:
   # smtpctl sh s
   possibilities are:
   show mta
   show envelope
   show hoststats
   show message
   show queue
   show hosts
   show relays
   show routes
   show stats
   show status

I'm guessing that 'sh s' became ambiguous with the addition of 'smtpctl
show status' in Revision 1.47 in Feb 2014. Or I don't understand what the
man page is trying to convey.

The following patch replaces 'sh s' with 'sh ro' for 'show routes'
which, as far as I can tell, is unambiguous.


Index: smtpctl.8
===
RCS file: /cvs/src/usr.sbin/smtpd/smtpctl.8,v
retrieving revision 1.50
diff -u -p -r1.50 smtpctl.8
--- smtpctl.8   27 Jul 2015 18:48:05 -  1.50
+++ smtpctl.8   16 Aug 2015 21:57:48 -
@@ -33,9 +33,9 @@ The
program controls
.Xr smtpd 8 .
Commands may be abbreviated to the minimum unambiguous prefix; for example,
-.Cm sh s
+.Cm sh ro 
for

-.Cm show stats .
+.Cm show routes .
.Pp
The
.Nm mailq
Index: smtpd.conf.5
===
RCS file: /cvs/src/usr.sbin/smtpd/smtpd.conf.5,v
retrieving revision 1.127
diff -u -p -r1.127 smtpd.conf.5
--- smtpd.conf.511 Aug 2015 21:57:24 -  1.127
+++ smtpd.conf.516 Aug 2015 21:57:48 -
@@ -635,7 +635,7 @@ able to establish an SMTP session.
.Ic secure
may be specified to provide both STARTTLS and SMTPS services.
Host certificates may be used for these connections,
-and must be priorly declared using the pki directive.
+and must be declared beforehand using the pki directive.
If
.Ic pki
is specified,