GNU bug report logs - #68666
warning if --exclude-dir arg contains /?

Previous Next

Package: grep;

Reported by: Karl Berry <karl <at> freefriends.org>

Date: Mon, 22 Jan 2024 23:49:02 UTC

Severity: normal

Full log


Message #5 received at submit <at> debbugs.gnu.org (full text, mbox):

From: Karl Berry <karl <at> freefriends.org>
To: bug-grep <at> gnu.org
Subject: warning if --exclude-dir arg contains /?
Date: Mon, 22 Jan 2024 16:48:21 -0700
Would it be crazy for  grep --exclude-dir=foo/bar  to give a warning?

Since, as I understand it, any non-trailing / in the arg can never match
since the arg is matched against the basename.

This came up when I ran grep -r --exclude="t/*.dir", thinking it would
exclude all the test output directories. Nope ... --thanks, karl.




This bug report was last modified 1 year and 208 days ago.

Previous Next


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