+#endif
+ return interactive;
+}
+
+#ifndef HAVE_LIBREADLINE
+#define add_history(s)
+char * readline(char * prompt)
+{
+ char line[2048];
+ int n;
+ char * ret = NULL;
+ if (prompt)
+ printf ("%s", prompt);
+ fgets(line, sizeof(line), stdin);
+ n = strlen(line);
+ if (n && line[n-1] == '\n')
+ line[--n] = '\0';
+ if (n == 0 && feof(stdin)) {
+ ret = NULL;
+ } else
+ ret = strdup(line);
+ return ret;
+}
+#endif
+
+/* this is the command execution machine */
+int Parser_commands(void)
+{
+ char *line, *s;
+ int rc = 0;
+ int interactive;
+
+ interactive = init_input();