From: Tilghman Lesher Date: Thu, 26 Jun 2008 22:49:16 +0000 (+0000) Subject: Don't hang if the command is blank X-Git-Tag: 1.6.2.0-beta1~1892 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=115ff1bb37ecc52635e5d07649fed62b2d55a898;p=thirdparty%2Fasterisk.git Don't hang if the command is blank git-svn-id: https://origsvn.digium.com/svn/asterisk/trunk@125583 65c4cc65-6c06-0410-ace0-fbb531ad65f3 --- diff --git a/contrib/scripts/astcli b/contrib/scripts/astcli index 723e1ba645..0ea245f141 100755 --- a/contrib/scripts/astcli +++ b/contrib/scripts/astcli @@ -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 (<>) {