MCPcopy Create free account
hub / github.com/coreutils/coreutils / regexp_error

Function regexp_error

src/csplit.c:720–737  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

718}
719
720static void
721regexp_error (struct control *p, intmax_t repetition, bool ignore)
722{
723 fprintf (stderr, _("%s: %s: match not found"),
724 program_name, quote (global_argv[p->argnum]));
725
726 if (repetition)
727 fprintf (stderr, _(" on repetition %jd\n"), repetition);
728 else
729 fprintf (stderr, "\n");
730
731 if (!ignore)
732 {
733 dump_rest_of_file ();
734 close_output_file ();
735 }
736 cleanup_fatal ();
737}
738
739/* Read the input until a line matches the regexp in P, outputting
740 it unless P->IGNORE is true.

Callers 1

process_regexpFunction · 0.85

Calls 3

dump_rest_of_fileFunction · 0.85
close_output_fileFunction · 0.85
cleanup_fatalFunction · 0.85

Tested by

no test coverage detected