[Home]

Summary:ASTERISK-04914: CLI tab completion works with partial command followed by <space><tab> but partial commands do not.
Reporter:John Todd (jtodd)Labels:
Date Opened:2005-08-27 19:14:26Date Closed:2011-06-07 14:10:03
Priority:MinorRegression?No
Status:Closed/CompleteComponents:Core/General
Versions:Frequency of
Occurrence
Related
Issues:
Environment:Attachments:
Description:All CLI commands relating to showing DNS status for the DNS manager don't seem to work.  They have the auto-complete data in the CLI, but the actual connection to an output function doesn't seem to be made correctly for some reason...

ms1*CLI> show version
Asterisk CVS-Nv1-2-0-beta1-08/27/05-23:54:23 built by root@some.host.com on a i686 running Linux on 2005-08-27 05:32:05 UTC
ms1*CLI> dns [tab]
refresh  reload   status  
ms1*CLI> dns status
No such command 'dns' (type 'help' for help)

Comments:By: Brian West (bkw918) 2005-08-27 19:19:34

its dnsmgr not just dns :P

/b

By: John Todd (jtodd) 2005-08-27 19:29:32

Not enough sleep today.  Closing.

By: John Todd (jtodd) 2005-08-27 19:35:37

well, maybe not so fast.  This is not a DNS bug, but is an inconsistency in the CLI tab completion.

Typing "dns<space><tab>" results in what appears to be a valid list of commands if the given first few characters are valid for a command, though the user thinks the substring is valid because of the tab completion of the next field in the list.  However, the whole command fails because the first field is incomplete.

By: Brian West (bkw918) 2005-08-27 21:18:53

haha you're right its a bug.  it shoudln't do that yo!

/b

By: Clod Patry (junky) 2005-08-28 00:26:34

On the same eye:
*CLI> show
agents        agi           application   applications  audio         channel       channels      channeltypes
codec         codecs        config        dialplan      features      file          function      functions
hints         image         indications   keys          manager       modules       parkedcalls   queue
queues        switches      translation   uptime        version       video         voicemail
*CLI> show

but:
*CLI> sh<space><tab>
agents        agi           application   applications  audio         channel       channels      channeltypes
codec         codecs        config        dialplan      features      file          function      functions
hints         image         indications   keys          manager       modules       parkedcalls   queue
queues        switches      translation   uptime        version       video         voicemail
*CLI> sh agi
No such command 'sh' (type 'help' for help)
*CLI>



By: Mark Spencer (markster) 2005-09-24 23:16:25

Fixed in CVS head.  We fixed it "correctly" :)

By: Russell Bryant (russell) 2005-09-25 13:30:20

fixed in 1.0 as well

By: Digium Subversion (svnbot) 2008-01-15 15:48:57.000-0600

Repository: asterisk
Revision: 6640

U   trunk/cli.c

------------------------------------------------------------------------
r6640 | markster | 2008-01-15 15:48:56 -0600 (Tue, 15 Jan 2008) | 2 lines

Fix CLI completion issue (bug ASTERISK-4914)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6640

By: Digium Subversion (svnbot) 2008-01-15 15:49:03.000-0600

Repository: asterisk
Revision: 6647

U   branches/v1-0/cli.c

------------------------------------------------------------------------
r6647 | russell | 2008-01-15 15:49:02 -0600 (Tue, 15 Jan 2008) | 2 lines

fix incorrect CLI tab completion (issue ASTERISK-4914)

------------------------------------------------------------------------

http://svn.digium.com/view/asterisk?view=rev&revision=6647