yellowman / nsh

OpenBSD networking configuration shell
http://www.nmedia.net/nsh/
Other
174 stars 27 forks source link

ignore extra argument to 'show int' if we already have a valid interface #109

Closed stspdotname closed 1 year ago

stspdotname commented 1 year ago

Otherwise we see an error like the following when the user accidentally enters extra numbers: Interface name is vlan1004093 not "vlan100 4093" Now we will show vlan100 instead in this case.

Problem found by Tom Smyth

stspdotname commented 1 year ago

Above force push changes silent acceptance of the bad argument into an error, as requested by Chris.