[asterisk-commits] tilghman: trunk r114115 - /trunk/contrib/scripts/astcli

SVN commits to the Asterisk project asterisk-commits at lists.digium.com
Mon Apr 14 11:32:59 CDT 2008


Author: tilghman
Date: Mon Apr 14 11:32:59 2008
New Revision: 114115

URL: http://svn.digium.com/view/asterisk?view=rev&rev=114115
Log:
Make tab-completion work for all cases

Modified:
    trunk/contrib/scripts/astcli

Modified: trunk/contrib/scripts/astcli
URL: http://svn.digium.com/view/asterisk/trunk/contrib/scripts/astcli?view=diff&rev=114115&r1=114114&r2=114115
==============================================================================
--- trunk/contrib/scripts/astcli (original)
+++ trunk/contrib/scripts/astcli Mon Apr 14 11:32:59 2008
@@ -152,10 +152,10 @@
 	if ($word eq '') {
 		$buffer =~ m/(\S+)\s?$/;
 		$lastword = $1;
-		print STDERR "\n\nlastword=\"$lastword\"\n";
+		#print STDERR "\n\nlastword=\"$lastword\"\n";
 	}
 
-	my $res = send_command("_command matchesarray \"$buffer\" \"$word\"\n");
+	my $res = send_command("_command matchesarray \"$buffer\" \"$word\"");
 	foreach my $item (split /\s+/, $res) {
 		$items{$item}++ unless ($item eq '_EOF_' or $item eq '' or $item eq $lastword);
 	}




More information about the asterisk-commits mailing list