From f43422c0b709939770890c26cd1388b5259129a7 Mon Sep 17 00:00:00 2001 From: gord-fig Date: Mon, 24 Sep 2001 17:39:22 +0000 Subject: [PATCH] Minor interface cleanups. --- lustre/obdclass/obdcontrol | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/lustre/obdclass/obdcontrol b/lustre/obdclass/obdcontrol index 8747b2e..7cb9048 100755 --- a/lustre/obdclass/obdcontrol +++ b/lustre/obdclass/obdcontrol @@ -342,6 +342,8 @@ sub execute_line { my @cmdline = split(' ', $line); my $word = shift @cmdline; + return 0 unless ($word); + my $cmd; if ( $file ) { $cmd = $word; @@ -353,10 +355,6 @@ sub execute_line { return (-1); } - if ($cmd eq "help" || $cmd eq "exit" || $cmd eq "quit") { - return (&{$commands{$cmd}->{func}}(@cmdline)); - } - # Call the function. return (&{$commands{$cmd}->{func}}(@cmdline)); } @@ -389,7 +387,7 @@ sub Device { print "Cannot open $device. Did you insert the obdclass module ?\n"; return -1; } - print "Openend device $device\n"; + print "Opened device $device\n"; $opendevfds{$device} = *NEW_OBD; $::dev_obd = *NEW_OBD; } -- 1.8.3.1