mirror_frr/vtysh
Donald Sharp d1b287e172 vtysh: Handle en better when in -u for vtysh
vtysh was unable to distinguish between end and ena.  The
code can now do so:

sharpd@eva ~/frr5 (master)> sudo vtysh/vtysh -u sharpd

Hello, this is FRRouting (version 8.1-dev).
Copyright 1996-2005 Kunihiro Ishiguro, et al.

eva> e
% Ambiguous command: e
eva> en
% Command not allowed: enable
eva> ena
% Command not allowed: enable
eva> enab
% Command not allowed: enable
eva> enabl
% Command not allowed: enable
eva> enable
% Command not allowed: enable
eva> enb
% Unknown command: enb
eva> enc
% Unknown command: enc
eva> end
% Unknown command: end
eva> ene
% Unknown command: ene
eva> quit

Fixes: #2296
Signed-off-by: Donald Sharp <sharpd@nvidia.com>
2021-07-22 12:00:58 -04:00
..
.gitignore vtysh: ignore generated file vtysh_daemons.h 2020-10-06 17:32:09 -04:00
daemons.pl vtysh: dynamically generate the list of daemons for commands 2020-10-02 15:06:27 +03:00
extract.pl.in lib: adapt to version 2 of libyang 2021-05-13 16:24:48 -04:00
Makefile build: non-recursive vtysh 2018-09-08 21:26:54 +02:00
subdir.am *: remove *.conf.sample files 2021-04-09 13:14:30 -04:00
vtysh_config.c vtysh: add CLI timestamp '-t' flag 2021-06-30 15:46:10 +00:00
vtysh_main.c vtysh: add CLI timestamp '-t' flag 2021-06-30 15:46:10 +00:00
vtysh_user.c *: sprintf -> snprintf 2020-04-20 19:14:33 -04:00
vtysh_user.h *: reindent 2017-07-17 14:04:07 +02:00
vtysh.c vtysh: Handle en better when in -u for vtysh 2021-07-22 12:00:58 -04:00
vtysh.h vtysh: add CLI timestamp '-t' flag 2021-06-30 15:46:10 +00:00