MAX_CMD
tmp_fcmd = (char **) xcalloc (MAX_CMD, sizeof(char *));
for (i = 0; i < MAX_CMD && list[i] != NULL; i++)