GNU bug report logs - #27730
--exclude-dir does ignore subdirectory

Previous Next

Package: grep;

Reported by: Jiří Kozlovský <mail <at> jkozlovsky.cz>

Date: Mon, 17 Jul 2017 06:05:01 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: Jiří Kozlovský <mail <at> jkozlovsky.cz>
To: 27730 <at> debbugs.gnu.org
Subject: bug#27730: --exclude-dir does ignore subdirectory
Date: Mon, 17 Jul 2017 07:51:53 +0200
When I run:
grep -Hrn --color=auto --exclude-dir=idserver/sql anything

Then the subdirectory idserver/sql is not ignored (it's included in the output).

The searching tree is like this:
.
./idserver
./idserver/sql
./idserver/sql/tablename
./idserver/sql/tablename/2013-10-07.sql

So if "./idserver/sql/tablename/2013-10-07.sql" has "anything" in it, then it gets outputted, because exclude-dir not working.

My grep version:
grep (GNU grep) 2.25
Copyright © 2016 Free Software Foundation, Inc.

My distro:
Distributor ID:	Ubuntu
Description:	Ubuntu 16.04.2 LTS
Release:	16.04
Codename:	xenial

Regards,
George




This bug report was last modified 5 years and 203 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.