bin/78504: grep --exclude does not check directories ?

Charlie & root at bang.freebsd.dk
Sun Mar 6 18:00:08 GMT 2005


>Number:         78504
>Category:       bin
>Synopsis:       grep --exclude does not check directories ?
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Sun Mar 06 18:00:07 GMT 2005
>Closed-Date:
>Last-Modified:
>Originator:     Charlie &
>Release:        FreeBSD 6.0-CURRENT i386
>Organization:
>Environment:
System: FreeBSD bang.freebsd.dk 6.0-CURRENT FreeBSD 6.0-CURRENT #2: Tue Feb 15 14:21:39 CET 2005 root at bang.freebsd.dk:/bang/p4/phk/phk_bufwork/sys/i386/compile/BANG i386

	-current.

>Description:

	# cat grep.sh
	#!/bin/sh

	mkdir __
	cd __
	mkdir aaa
	echo foo > a1
	echo foo > aaa/a1

	set -x
	grep -r --exclude=aaa foo .
	# sh -x grep.sh
	+ grep -r --exclude=aaa foo .
	./aaa/a1:foo
	./a1:foo

	It doesn't seem possible to exclude directories when using
	the -r(ecursive) option.

	
>How-To-Repeat:
	see above.
>Fix:



>Release-Note:
>Audit-Trail:
>Unformatted:


More information about the freebsd-bugs mailing list