Merged revisions 125583 via svnmerge from

https://origsvn.digium.com/svn/asterisk/trunk

........
r125583 | tilghman | 2008-06-26 17:49:16 -0500 (Thu, 26 Jun 2008) | 2 lines

Don't hang if the command is blank

........


git-svn-id: https://origsvn.digium.com/svn/asterisk/branches/1.6.0@125584 65c4cc65-6c06-0410-ace0-fbb531ad65f3
This commit is contained in:
Tilghman Lesher
2008-06-26 22:50:17 +00:00
parent 6d89f9ac86
commit be0a82a3bb

View File

@@ -101,7 +101,7 @@ if ($action eq '-' || !defined $action || $action eq '') {
$attribs->{completion_function} = \&tab_completion;
while (defined($_ = $term->readline($prompt))) {
(logoff() and exit) if $_ =~ /exit|quit/; # Give them a way to exit the "terminal"
print send_command($_);
print send_command($_) if $_ !~ m/^\s*$/;
}
} else {
while (<>) {