command_loop(void)

{

	int		c, i, j = 0, done = 0;

	char		*input;

	char		**v;

	const cmdinfo_t	*ct;



	for (i = 0; !done && i < ncmdline; i++) {

		input = strdup(cmdline[i]);

		if (!input) {

			fprintf(stderr,

				_("cannot strdup command '%s': %s\n"),

				cmdline[i], strerror(errno));

			exit(1);

		}

		v = breakline(input, &c);

		if (c) {

			ct = find_command(v[0]);

			if (ct) {

				if (ct->flags & CMD_FLAG_GLOBAL)

					done = command(ct, c, v);

				else {

					j = 0;

					while (!done && (j = args_command(j)))

						done = command(ct, c, v);

				}

			} else

				fprintf(stderr, _("command \"%s\" not found\n"),

					v[0]);

		}

		doneline(input, v);

	}

	if (cmdline) {

		free(cmdline);

		return;

	}

	while (!done) {

		if ((input = fetchline()) == NULL)

			break;

		v = breakline(input, &c);

		if (c) {

			ct = find_command(v[0]);

			if (ct)

				done = command(ct, c, v);

			else

				fprintf(stderr, _("command \"%s\" not found\n"),

					v[0]);

		}

		doneline(input, v);

	}

}

command_loop(void)

{

	int		c, i, j = 0, done = 0;

	char		*input;

	char		**v;

	const cmdinfo_t	*ct;



	for (i = 0; !done && i < ncmdline; i++) {

		input = strdup(cmdline[i]);

		if (!input) {

			fprintf(stderr,

				_("cannot strdup command '%s': %s\n"),

				cmdline[i], strerror(errno));

			exit(1);

		}

		v = breakline(input, &c);

		if (c) {

			ct = find_command(v[0]);

			if (ct) {

				if (ct->flags & CMD_FLAG_GLOBAL)

					done = command(ct, c, v);

				else {

					j = 0;

					while (!done && (j = args_command(j)))

						done = command(ct, c, v);

				}

			} else

				fprintf(stderr, _("command \"%s\" not found\n"),

					v[0]);

		}

		doneline(input, v);

	}

	if (cmdline) {

		free(cmdline);

		return;

	}

	while (!done) {

		if ((input = fetchline()) == NULL)

			break;

		v = breakline(input, &c);

		if (c) {

			ct = find_command(v[0]);

			if (ct)

				done = command(ct, c, v);

			else

				fprintf(stderr, _("command \"%s\" not found\n"),

					v[0]);

		}

		doneline(input, v);

	}

}

FUNC_0(void)

{

	int		VAR_0, VAR_1, VAR_2 = 0, VAR_3 = 0;

	char		*VAR_4;

	char		**VAR_5;

	const cmdinfo_t	*VAR_6;



	for (VAR_1 = 0; !VAR_3 && VAR_1 < ncmdline; VAR_1++) {

		VAR_4 = strdup(cmdline[VAR_1]);

		if (!VAR_4) {

			fprintf(stderr,

				_("cannot strdup command '%s': %s\n"),

				cmdline[VAR_1], strerror(errno));

			exit(1);

		}

		VAR_5 = breakline(VAR_4, &VAR_0);

		if (VAR_0) {

			VAR_6 = find_command(VAR_5[0]);

			if (VAR_6) {

				if (VAR_6->flags & CMD_FLAG_GLOBAL)

					VAR_3 = command(VAR_6, VAR_0, VAR_5);

				else {

					VAR_2 = 0;

					while (!VAR_3 && (VAR_2 = args_command(VAR_2)))

						VAR_3 = command(VAR_6, VAR_0, VAR_5);

				}

			} else

				fprintf(stderr, _("command \"%s\" not found\n"),

					VAR_5[0]);

		}

		doneline(VAR_4, VAR_5);

	}

	if (cmdline) {

		free(cmdline);

		return;

	}

	while (!VAR_3) {

		if ((VAR_4 = fetchline()) == NULL)

			break;

		VAR_5 = breakline(VAR_4, &VAR_0);

		if (VAR_0) {

			VAR_6 = find_command(VAR_5[0]);

			if (VAR_6)

				VAR_3 = command(VAR_6, VAR_0, VAR_5);

			else

				fprintf(stderr, _("command \"%s\" not found\n"),

					VAR_5[0]);

		}

		doneline(VAR_4, VAR_5);

	}

}

FUNC_0(void)
{ int		VAR_0, VAR_1, VAR_2 = 0, VAR_3 = 0; char		*VAR_4; char		**VAR_5; const cmdinfo_t	*VAR_6; for (VAR_1 = 0; !VAR_3 && VAR_1 < ncmdline; VAR_1++) { VAR_4 = strdup(cmdline[VAR_1]); if (!VAR_4) { fprintf(stderr,
_("cannot strdup command '%s': %s\n"),
cmdline[VAR_1], strerror(errno)); exit(1); } VAR_5 = breakline(VAR_4, &VAR_0); if (VAR_0) { VAR_6 = find_command(VAR_5[0]); if (VAR_6) { if (VAR_6->flags & CMD_FLAG_GLOBAL)
VAR_3 = command(VAR_6, VAR_0, VAR_5); else { VAR_2 = 0; while (!VAR_3 && (VAR_2 = args_command(VAR_2)))
VAR_3 = command(VAR_6, VAR_0, VAR_5); } } else fprintf(stderr, _("command \"%s\" not found\n"),
VAR_5[0]); } doneline(VAR_4, VAR_5); } if (cmdline) { free(cmdline); return; } while (!VAR_3) { if ((VAR_4 = fetchline()) == NULL)
break; VAR_5 = breakline(VAR_4, &VAR_0); if (VAR_0) { VAR_6 = find_command(VAR_5[0]); if (VAR_6)
VAR_3 = command(VAR_6, VAR_0, VAR_5); else
fprintf(stderr, _("command \"%s\" not found\n"),
VAR_5[0]); } doneline(VAR_4, VAR_5); } }