dect
/
asterisk
Archived
13
0
Fork 0

Hide CLI commands starting with _ from tab completion as was done previously.

(closes issue #11395)
Reported by: eliel
Patches:
      cli.c.patch uploaded by eliel (license 64)


git-svn-id: http://svn.digium.com/svn/asterisk/trunk@89982 f38db490-d61c-443f-a65b-d21fe96a405b
This commit is contained in:
file 2007-11-28 15:48:00 +00:00
parent 71d61e3829
commit 04dbf0cfc6
1 changed files with 3 additions and 0 deletions

View File

@ -1728,6 +1728,9 @@ static char *__ast_cli_generator(const char *text, const char *word, int state,
/* XXX repeated code */
int src = 0, dst = 0, n = 0;
if (e->command[0] == '_')
continue;
/*
* Try to match words, up to and excluding the last word, which
* is either a blank or something that we want to extend.