Index: trunk/Ohana/src/opihi/pantasks/task.c
===================================================================
--- trunk/Ohana/src/opihi/pantasks/task.c	(revision 4693)
+++ trunk/Ohana/src/opihi/pantasks/task.c	(revision 4697)
@@ -2,9 +2,7 @@
 # define prompt "> "
 
-enum {TASK_NONE, TASK_EMPTY, TASK_COMMENT, TASK_NMAX, TASK_TRANGE, TASK_END, TASK_HOST, TASK_COMMAND, TASK_PERIODS, TASK_EXIT, TASK_EXEC};
-
 int task (int argc, char **argv) {
 
-  int N;
+  int N, hash;
   int ThisList, status;
   char *input, *outline;
@@ -66,5 +64,6 @@
 
     stripwhite (input);
-    switch (TaskHash (input)) {
+    hash = TaskHash (input);
+    switch (hash) {
 
       case TASK_EMPTY:
@@ -78,5 +77,5 @@
 	free (input);
 	/* validate the new task: all mandatory elements defined? */ 
-	if (!ValidateTask (task)) {
+	if (!ValidateTask (task, FALSE)) {
 	  DeleteNewTask ();
 	  return (FALSE);
@@ -107,26 +106,2 @@
   return (FALSE);
 }
-
-int TaskHash (char *input) {
-  
-  int hash;
-  char *command;
-
-  hash = TASK_NONE;
-
-  command = thisword (input);
-  if (command == NULL) return (TASK_EMPTY);
-
-  if (command[0] == '#')                  hash = TASK_COMMENT;
-  if (!strcasecmp (command, "END"))       hash = TASK_END;
-  if (!strcasecmp (command, "HOST"))      hash = TASK_HOST;
-  if (!strcasecmp (command, "NMAX"))      hash = TASK_NMAX;
-  if (!strcasecmp (command, "TRANGE"))    hash = TASK_TRANGE;
-  if (!strcasecmp (command, "COMMAND"))   hash = TASK_COMMAND;
-  if (!strcasecmp (command, "PERIODS"))   hash = TASK_PERIODS;
-  if (!strcasecmp (command, "TASK.EXIT")) hash = TASK_EXIT;
-  if (!strcasecmp (command, "TASK.EXEC")) hash = TASK_EXEC;
-
-  free (command);
-  return (hash);
-}
