Whamcloud - gitweb
Minor interface cleanups.
authorgord-fig <gord-fig>
Mon, 24 Sep 2001 17:39:22 +0000 (17:39 +0000)
committergord-fig <gord-fig>
Mon, 24 Sep 2001 17:39:22 +0000 (17:39 +0000)
lustre/obdclass/obdcontrol

index 8747b2e..7cb9048 100755 (executable)
@@ -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;
        }