*** grep-2.5e/src/grep.c Sun Mar 4 22:31:00 2001 --- grep-2.5e.my/src/grep.c Mon Apr 2 23:11:51 2001 *************** *** 590,597 **** while (p[-1] != eol); ! /* We only print the "--" separator if our output is discontiguous from the last output in the file. */ ! if ((out_before || out_after) && used && p != lastout) ! puts ("--"); while (p < beg) --- 590,598 ---- while (p[-1] != eol); ! /* We only print the "--( filename)?" separator if our output is discontiguous from the last output in the file. */ ! if ((out_before || out_after) && p != lastout) ! if (no_filenames) printf ("-- %s\n", filename); ! else if (used) puts ("--"); while (p < beg)