Skip to content

Instantly share code, notes, and snippets.

@Osse
Created September 19, 2012 16:02
Show Gist options
  • Save Osse/3750495 to your computer and use it in GitHub Desktop.
Save Osse/3750495 to your computer and use it in GitHub Desktop.
Grep output error
osse@osse-w760:~/Pr/bash[master•]$ grep '\(get_name_for\|file\|programming\|report\|parser\|fatal\|sys\|internal\|command\)_error' *[ch]
array.c:fatal_error(const char *s, ...)
array.c:programming_error(const char *s, ...)
arrayfunc.c: report_error (_("%s: cannot convert indexed to associative array"), name);
arrayfunc.c: report_error (_("%s: invalid associative array key"), w);
arrayfunc.c: report_error (_("%s: cannot assign to non-numeric index"), w);
arrayfunc.c: report_error (_("%s: %s: must use subscript when assigning associative array"), var->name, w);
bashhist.c: internal_error ("%s", history_value);
bashline.c: internal_error (_("bash_execute_unix_command: cannot find keymap for command"));
braces.c: report_error ("no closing `%c' in %s", '}', text);
braces.c:fatal_error (format, arg1, arg2)
braces.c: report_error (format, arg1, arg2);
braces.c:report_error (format, arg1, arg2)
dispose_cmd.c: command_error ("dispose_command", CMDERR_BADTYPE, command->type, 0);
error.c: ename = get_name_for_error ();
error.c:get_name_for_error ()
error.c: sys_error so the filename is not interpreted as a printf-style
error.c:file_error (filename)
error.c: report_error ("%s: %s", filename, strerror (errno));
error.c:programming_error (const char *format, ...)
error.c:programming_error (format, va_alist)
error.c: shell. Used in this file by file_error and programming_error. Used
error.c:report_error (const char *format, ...)
error.c:report_error (format, va_alist)
error.c:fatal_error (const char *format, ...)
error.c:fatal_error (format, va_alist)
error.c:internal_error (const char *format, ...)
error.c:internal_error (format, va_alist)
error.c:sys_error (const char *format, ...)
error.c:sys_error (format, va_alist)
error.c:parser_error (int lineno, const char *format, ...)
error.c:parser_error (lineno, format, va_alist)
error.c: ename = get_name_for_error ();
error.c:command_error (func, code, e, flags)
error.c: programming_error ("%s: %s: %d", func, _(cmd_error_table[code]), e);
error.c: report_error ("%s: %s", s, _(bash_badsub_errmsg));
error.c: report_error (_("%s: unbound variable"), s);
error.c: report_error (_("%s: readonly variable"), s);
error.h:extern char *get_name_for_error __P((void));
error.h:extern void file_error __P((const char *));
error.h:extern void programming_error __P((const char *, ...)) __attribute__((__format__ (printf, 1, 2)));
error.h:extern void report_error __P((const char *, ...)) __attribute__((__format__ (printf, 1, 2)));
error.h:extern void parser_error __P((int, const char *, ...)) __attribute__((__format__ (printf, 2, 3)));
error.h:extern void fatal_error __P((const char *, ...)) __attribute__((__format__ (printf, 1, 2)));
error.h:extern void sys_error __P((const char *, ...)) __attribute__((__format__ (printf, 1, 2)));
error.h:extern void internal_error __P((const char *, ...)) __attribute__((__format__ (printf, 1, 2)));
error.h:extern void command_error __P((const char *, int, int, int));
error.h:/* Specific errror message functions that eventually call report_error or
error.h: internal_error. */
eval.c: command_error ("reader_loop", CMDERR_BADJUMP, code, 0);
execute_cmd.c: internal_error (_("cannot redirect standard input from /dev/null: %s"), strerror (errno));
execute_cmd.c: command_error ("execute_command", CMDERR_BADTYPE, command->type, 0);
execute_cmd.c: internal_error (_("TIMEFORMAT: `%c': invalid format character"), *s);
execute_cmd.c: internal_error ("execute_coproc: coproc [%d:%s] already exists", sh_coproc.c_pid, sh_coproc.c_name);
execute_cmd.c: sys_error (_("pipe error"));
execute_cmd.c: command_error ("execute_connection", CMDERR_BADCONN, command->value.Connection->connector, 0);
execute_cmd.c: command_error ("execute_cond_node", CMDERR_BADTYPE, cond->type, 0);
execute_cmd.c: internal_error ("%s: maximum function nesting level exceeded (%d)", var->name, funcnest);
execute_cmd.c: internal_error (_("%s: restricted: cannot specify `/' in command names"),
execute_cmd.c: internal_error (_("%s: command not found"), pathname);
execute_cmd.c: internal_error (_("%s: %s"), command, strerror (EISDIR));
execute_cmd.c: internal_error (_("%s: is a directory"), command);
execute_cmd.c: file_error (command);
execute_cmd.c: file_error (command);
execute_cmd.c: sys_error (_("%s: %s: bad interpreter"), command, interp ? interp : "");
execute_cmd.c: file_error (command);
execute_cmd.c: internal_error (_("%s: cannot execute binary file"), command);
execute_cmd.c: internal_error (_("%s: readonly function"), var->name);
execute_cmd.c: sys_error (_("cannot duplicate fd %d to fd %d"), oldd, newd);
expr.c: internal_error (_("%s%s%s: %s (error token is \"%s\")"),
general.c: internal_error (_("`%s': not a valid identifier"), word->word);
general.c: internal_error (_("`%s': not a valid identifier"), word->word);
hashlib.c:programming_error (const char *format, ...)
hashlib.c:fatal_error (const char *format, ...)
input.c: sys_error (_("cannot reset nodelay mode for fd %d"), fileno (stream));
input.c: sys_error (_("cannot allocate new file descriptor for bash input from fd %d"), fd);
input.c: internal_error (_("save_bash_input: buffer already exists for new fd %d"), nfd);
jobs.c: sys_error (_("start_pipeline: pgrp pipe"));
jobs.c: programming_error (_("describe_pid: %ld: no such pid"), (long)pid);
jobs.c: sys_error ("fork: retry");
jobs.c: sys_error ("fork");
jobs.c: sys_error (_("child setpgid (%ld to %ld)"), (long)mypid, (long)pipeline_pgrp);
jobs.c: sys_error ("[%ld: %d (%d)] tcgetattr", (long)getpid (), shell_level, tty);
jobs.c: sys_error ("[%ld: %d (%d)] tcsetattr", (long)getpid (), shell_level, tty);
jobs.c: internal_error (_("wait: pid %ld is not a child of this shell"), (long)pid);
jobs.c: internal_error (_("wait_for: No record of process %ld"), (long)pid); \
jobs.c: internal_error (_("%s: job has terminated"), this_command_name);
jobs.c: internal_error (_("%s: job %d already in background"), this_command_name, job + 1);
jobs.c: fprintf (stderr, _("%s: line %d: "), get_name_for_error (), (line_number == 0) ? 1 : line_number);
jobs.c: programming_error ("notify_of_job_status");
jobs.c: sys_error (_("initialize_job_control: getpgrp failed"));
jobs.c: sys_error (_("initialize_job_control: line discipline"));
jobs.c: sys_error (_("initialize_job_control: setpgid"));
jobs.c: sys_error (_("cannot set terminal process group (%d)"), t);
jobs.c: internal_error (_("no job control in this shell"));
jobs.c: sys_error ("tcsetpgrp(%d) failed: pid %ld to pgrp %ld",
make_cmd.c: parser_error (lineno, _("syntax error: arithmetic expression required"));
make_cmd.c: parser_error (lineno, _("syntax error: `;' unexpected"));
make_cmd.c: parser_error (lineno, _("syntax error: `((%s))'"), exprs->word->word);
make_cmd.c: internal_error (_("make_here_document: bad instruction type %d"), temp->instruction);
make_cmd.c: programming_error (_("make_redirection: redirection instruction `%d' out of range"), instruction);
make_cmd.c: command_error ("clean_simple_command", CMDERR_BADTYPE, command->type, 0);
nojobs.c: sys_error ("fork: retry");
nojobs.c: sys_error ("fork");
nojobs.c: internal_error (_("wait: pid %ld is not a child of this shell"), (long)pid);
nojobs.c: sys_error ("wait");
nojobs.c: sys_error("wait");
nojobs.c: programming_error ("wait_for(%ld): %s", (long)pid, strerror(errno));
pcomplete.c: internal_error (_("completion: function `%s' not found"), funcname);
pcomplib.c: programming_error (_("progcomp_insert: %s: NULL COMPSPEC"), cmd);
print_cmd.c: command_error ("print_command", CMDERR_BADTYPE, command->type, 0);
print_cmd.c: internal_error (_("xtrace_set: %d: invalid file descriptor"), fd);
print_cmd.c: internal_error (_("xtrace_set: NULL file pointer"));
print_cmd.c: programming_error (_("cprintf: `%c': invalid format character"), c);
redir.c: internal_error (_("%s: ambiguous redirect"), filename);
redir.c: internal_error (_("%s: cannot overwrite existing file"), filename);
redir.c: internal_error (_("%s: restricted: cannot redirect output"), filename);
redir.c: internal_error (_("cannot create temp file for here-document: %s"), strerror (heredoc_errno));
redir.c: internal_error (_("%s: cannot assign fd to variable"), filename);
redir.c: internal_error ("%s: %s", filename, strerror (error));
redir.c: sys_error (_("redirection error: cannot duplicate fd"));
redir.c: sys_error (_("redirection error: cannot duplicate fd"));
redir.c: sys_error (_("redirection error: cannot duplicate fd"));
redir.c: sys_error (_("redirection error: cannot duplicate fd"));
shell.c: mcheck (programming_error, (void (*) ())0);
shell.c: report_error (_("%s: option requires an argument"), "-c");
shell.c: report_error (_("%s: option requires an argument"), long_args[i].name);
shell.c: report_error (_("%s: invalid option"), argv[arg_index]);
shell.c: report_error (_("%c%c: invalid option"), on_or_off, arg_character);
shell.c: trace_malloc_stats (get_name_for_error (), (char *)NULL);
shell.c: command_error ("run_wordexp", CMDERR_BADJUMP, code, 0);
shell.c: command_error ("run_one_command", CMDERR_BADJUMP, code, 0);
shell.c: file_error (filename);
shell.c: internal_error (_("%s: is a directory"), filename);
shell.c: file_error (filename);
shell.c: internal_error (_("%s: cannot execute binary file"), filename);
shell.c: file_error (filename);
sig.c: internal_error (_("sigprocmask: %d: invalid operation"), operation);
subst.c:static int no_longjmp_on_fatal_error = 0;
subst.c: /* Just paranoia; ret will not be 0 unless no_longjmp_on_fatal_error
subst.c: if (ret == 0 && no_longjmp_on_fatal_error)
subst.c: xflags |= (no_longjmp_on_fatal_error ? SX_NOLONGJMP : 0);
subst.c: if (no_longjmp_on_fatal_error == 0)
subst.c: report_error (_("bad substitution: no closing `%s' in %s"), closer, string);
subst.c: if (no_longjmp_on_fatal_error == 0)
subst.c: report_error (_("bad substitution: no closing `%s' in %s"), "}", string);
subst.c:#define CQ_RETURN(x) do { no_longjmp_on_fatal_error = 0; return (x); } while (0)
subst.c: no_longjmp_on_fatal_error = 1;
subst.c: no_longjmp_on_fatal_error = 1;
subst.c: no_longjmp_on_fatal_error = 1;
subst.c: report_error (_("%s: cannot assign list to array member"), name);
subst.c: no_longjmp_on_fatal_error = 1;
subst.c: no_longjmp_on_fatal_error = 0;
subst.c: sys_error (_("cannot make pipe for process substitution"));
subst.c: sys_error (_("cannot make pipe for process substitution"));
subst.c: sys_error (_("cannot make child for process substitution"));
subst.c: sys_error (_("cannot open named pipe %s for reading"), pathname);
subst.c: sys_error (_("cannot open named pipe %s for writing"), pathname);
subst.c: sys_error (_("cannot reset nodelay mode for fd %d"), fd);
subst.c: sys_error (_("cannot duplicate named pipe %s as fd %d"), pathname,
subst.c: sys_error (_("cannot make pipe for command substitution"));
subst.c: sys_error (_("cannot make child for command substitution"));
subst.c: sys_error (_("command_substitute: cannot duplicate pipe as fd 1"));
subst.c: report_error ("%s: %s", name, temp ? temp : ""); /* XXX was value not "" */
subst.c: report_error (_("%s: parameter null or not set"), name);
subst.c: internal_error (_("%s: substring expression < 0"), t);
subst.c: internal_error (_("%s: substring expression < 0"), t);
subst.c: report_error (_("%s: bad substitution"), string ? string : "??");
subst.c: report_error (_("$%s: cannot assign in this way"), name);
subst.c: report_error (_("bad substitution: no closing \"`\" in %s") , string+t_index);
subst.c: report_error (_("no match: %s"), tlist->word->word);
trap.c: programming_error (_("trap_handler: bad signal %d"), sig);
variables.c: report_error (_("error importing function definition for `%s'"), name);
variables.c: internal_error (_("make_local_variable: no function context at current scope"));
variables.c: internal_error (_("all_local_variables: no function context at current scope"));
variables.c: internal_error (_("%s has null exportstr"), v->name);
variables.c: internal_error (_("invalid character %d in exportstr for %s"), *s, v->name);
variables.c: internal_error (_("invalid character %d in exportstr for %s"), *s, v->name);
variables.c: internal_error (_("no `=' in exportstr for %s"), v->name);
variables.c: internal_error (_("pop_var_context: head of shell_variables not a function context"));
variables.c: internal_error (_("pop_var_context: no global_variables context"));
variables.c: internal_error (_("pop_scope: head of shell_variables not a temporary environment scope"));
variables.c: internal_error (_("%s: %s: cannot open as FILE"), name, value_cell (v));
variables.c: internal_error (_("%s: %s: invalid value for trace file descriptor"), name, value_cell (v));
xmalloc.c: fatal_error (_("%s: cannot allocate %lu bytes (%lu bytes allocated)"), func, (unsigned long)bytes, (unsigned long)allocated);
xmalloc.c: fatal_error (_("%s: cannot allocate %lu bytes"), func, (unsigned long)bytes);
xmalloc.c: fatal_error (_("%s: %s:%d: cannot allocate %lu bytes (%lu bytes allocated)"), func, file, line, (unsigned long)bytes, (unsigned long)allocated);
xmalloc.c: fatal_error (_("%s: %s:%d: cannot allocate %lu bytes"), func, file, line, (unsigned long)bytes);
y.tab.c: parser_error (start_lineno, _("unexpected EOF while looking for matching `%c'"), close);
y.tab.c: parser_error (start_lineno, _("unexpected EOF while looking for matching `%c'"), close);
y.tab.c: parser_error (cond_lineno, _("unexpected EOF while looking for `]]'"));
y.tab.c: parser_error (cond_lineno, _("syntax error in conditional expression: unexpected token `%s'"), etext);
y.tab.c: parser_error (cond_lineno, _("syntax error in conditional expression"));
y.tab.c: parser_error (lineno, _("unexpected token `%s', expected `)'"), etext);
y.tab.c: parser_error (lineno, _("expected `)'"));
y.tab.c: parser_error (line_number, _("unexpected argument `%s' to conditional unary operator"), etext);
y.tab.c: parser_error (line_number, _("unexpected argument to conditional unary operator"));
y.tab.c: parser_error (line_number, _("unexpected token `%s', conditional binary operator expected"), etext);
y.tab.c: parser_error (line_number, _("conditional binary operator expected"));
y.tab.c: parser_error (line_number, _("unexpected argument `%s' to conditional binary operator"), etext);
y.tab.c: parser_error (line_number, _("unexpected argument to conditional binary operator"));
y.tab.c: parser_error (line_number, _("unexpected token `%c' in conditional command"), tok);
y.tab.c: parser_error (line_number, _("unexpected token `%s' in conditional command"), etext);
y.tab.c: parser_error (line_number, _("unexpected token %d in conditional command"), tok);
y.tab.c: parser_error (line_number, "`%s'", msg);
y.tab.c: parser_error (line_number, "%s", message);
y.tab.c: parser_error (line_number, _("syntax error near unexpected token `%s'"), msg);
y.tab.c: parser_error (line_number, _("syntax error near `%s'"), msg);
y.tab.c: parser_error (line_number, "%s", msg);
y.tab.c: parser_error (orig_line_number, _("unexpected EOF while looking for matching `)'"));
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment