Date: Sun, 6 Mar 2005 18:53:19 +0100 (CET) From: Charlie & <root@bang.freebsd.dk> To: FreeBSD-gnats-submit@FreeBSD.org Subject: bin/78504: grep --exclude does not check directories ? Message-ID: <200503061753.j26HrJlP046279@bang.freebsd.dk> Resent-Message-ID: <200503061800.j26I07NM059198@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
>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@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:
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200503061753.j26HrJlP046279>