Browse Source

Add clish_nop builtin command

git-svn-id: https://klish.googlecode.com/svn/trunk@406 0eaa4687-2ee9-07dd-09d9-bcdd2d2dd5fb
Serj Kalichev 13 years ago
parent
commit
a5d286a0c6
1 changed files with 12 additions and 1 deletions
  1. 12 1
      clish/shell/shell_execute.c

+ 12 - 1
clish/shell/shell_execute.c

@@ -24,7 +24,8 @@ static clish_shell_builtin_fn_t
     clish_source,
     clish_source_nostop,
     clish_history,
-    clish_nested_up;
+    clish_nested_up,
+    clish_nop;
 
 static clish_shell_builtin_t clish_cmd_list[] = {
 	{"clish_close", clish_close},
@@ -33,6 +34,7 @@ static clish_shell_builtin_t clish_cmd_list[] = {
 	{"clish_source_nostop", clish_source_nostop},
 	{"clish_history", clish_history},
 	{"clish_nested_up", clish_nested_up},
+	{"clish_nop", clish_nop},
 	{NULL, NULL}
 };
 
@@ -377,6 +379,15 @@ static bool_t clish_nested_up(const clish_shell_t * shell, const lub_argv_t * ar
 	return BOOL_TRUE;
 }
 
+/*----------------------------------------------------------- */
+/*
+ * Builtin: NOP function
+ */
+static bool_t clish_nop(const clish_shell_t * shell, const lub_argv_t * argv)
+{
+	return BOOL_TRUE;
+}
+
 /*----------------------------------------------------------- */
 const char * clish_shell__get_fifo(clish_shell_t * this)
 {