Lines Matching refs:args
195 int (*builtin_func) (char **args); in run_command_array()
308 char *args[MAX_ARG_COUNT+1]; in run_command_string() local
349 args[ap] = (char *) xmalloc (end - start + 1); in run_command_string()
350 memcpy (args[ap], start, end - start); in run_command_string()
351 args[ap][end - start] = 0; in run_command_string()
354 dprintf (stderr, "args[%d] = <%s>\n", ap, args[ap]); in run_command_string()
355 if (args[ap][0] == '\'' in run_command_string()
356 && args[ap][strlen (args[ap])-1] == '\'') in run_command_string()
358 args[ap][strlen (args[ap])-1] = 0; in run_command_string()
359 args[ap] ++; in run_command_string()
362 else if (args[ap][0] == '"' in run_command_string()
363 && args[ap][strlen (args[ap])-1] == '"') in run_command_string()
365 args[ap][strlen (args[ap])-1] = 0; in run_command_string()
366 args[ap] ++; in run_command_string()
370 else if (args[ap][0] == '$' in run_command_string()
371 && isdigit (args[ap][1]) in run_command_string()
372 && args[ap][2] == 0) in run_command_string()
374 int a = args[ap][1] - '1'; in run_command_string()
376 args[ap] = strdup (iargs[a]); in run_command_string()
386 args[ap] = NULL; in run_command_string()
387 run_command_array (args); in run_command_string()
393 run_script (const char *filename, const char **args) in run_script() argument
410 run_command_string (line, args); in run_script()