Thank you for your comment.

> This will lead to usage and documentation issues (aside from your
> diff not including a manpage change):
>

You are right, I missed the manpage bits.

> With your diff, someone might write somewhere
> 
>  just type "route a default 192.0.2.1" to configure a default route.
> 
> Next we add a new keyword "abc"...
> 

I took bgpctl as an example. If there is an ambiguity, route(8) will complain.
As stated in the man "Commands may be abbreviated to the minimum unambiguous
prefix". I guess the shortcuts are to be used only interactively. Using the
longer keyword in a script or in hostname.if is not an issue.

Here is the manpage :

Index: route.8
===================================================================
RCS file: /cvs/src/sbin/route/route.8,v
retrieving revision 1.79
diff -u -p -r1.79 route.8
--- route.8     1 Jan 2017 01:08:11 -0000       1.79
+++ route.8     27 Jul 2017 17:44:46 -0000
@@ -97,7 +97,12 @@ instead of a real routing socket to test
 .Pp
 The
 .Nm
-utility provides the following simple commands:
+utility provides the following simple commands. Commands may be abbreviated
+to the minimum unambiguous prefix; for example,
+.Cm s
+for
+.Cm show.
+
 .Bl -tag -width Fl
 .It Xo
 .Nm route

Reply via email to