[PATCH] grep directory loop reporting outputs extra newline
Andre Guibert de Bruet
andy at siliconlandmark.com
Sun Feb 13 05:22:56 GMT 2005
Hi,
I noticed a simple output regression between 4.10 and CURRENT wrt grep's
output when it encounters a recursive directory loop. CURRENT puts an
extra new-line when such a path is found. This adds complexity to scripts
that rely on the traditional way of doing things.
The patch attached to this email can also be found at:
http://bling.properkernel.com/freebsd/grep.recursive.patch
Could this be committed?
Thanks,
Andy
| Andre Guibert de Bruet | Enterprise Software Consultant >
| Silicon Landmark, LLC. | http://siliconlandmark.com/ >
-------------- next part --------------
Index: grep.c
===================================================================
RCS file: /home/ncvs/src/gnu/usr.bin/grep/grep.c,v
retrieving revision 1.27
diff -r1.27 grep.c
1107c1107
< error (0, 0, _("warning: %s: %s\n"), dir,
---
> error (0, 0, _("warning: %s: %s"), dir,
More information about the freebsd-current
mailing list