diff -urpN grep-2.5.1a.orig/src/grep.c grep-2.5.1a/src/grep.c --- grep-2.5.1a.orig/src/grep.c 2004-11-12 12:25:35.000000000 +0100 +++ grep-2.5.1a/src/grep.c 2005-01-07 14:31:00.000000000 +0100 @@ -723,7 +723,7 @@ grepbuf (char const *beg, char const *li if (!outleft || done_on_match) { if (exit_on_match) - exit (0); + {puts("here"); exit (0);} after_last_match = bufoffset - (buflim - endp); return nlines; }