[Rt-devel] [PATCH] rt shell quit command

Marc Dougherty muncus at ccs.neu.edu
Fri May 7 12:41:42 EDT 2004


In playing with the rt cli shell mode, I noticed that there is no shell
command to quit. Although control-d causes the sessions file to be
updated, I feel a proper 'exit' or 'quit' command would be more
intuitive. I have attached a patch.

--Marc.

-- 
Marc "Muncus" Dougherty
Intrusion Detection Ninja
Northeastern University
College of Computer and Information Science
-------------- next part --------------
Index: rt.in
===================================================================
--- rt.in	(revision 854)
+++ rt.in	(working copy)
@@ -88,6 +88,7 @@
     link        => ["link", "ln"],
     merge       => ["merge"],
     grant       => ["grant", "revoke"],
+    quit        => ["quit", "exit"],
 );
 
 my %actions;
@@ -130,6 +131,11 @@
     print "\n";
 }
 
+# provides a clean way to exit from the shell mode.
+sub quit {
+    exit;
+}
+
 sub version {
     print "rt $VERSION\n";
 }


More information about the Rt-devel mailing list