GNU bug report logs - #22144
--exclude no longer works against arguments with a directory name

Previous Next

Package: grep;

Reported by: Vincent Lefevre <vincent <at> vinc17.net>

Date: Fri, 11 Dec 2015 18:38:02 UTC

Severity: normal

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

Bug is archived. No further changes may be made.

Full log


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

From: Vincent Lefevre <vincent <at> vinc17.net>
To: bug-grep <at> gnu.org
Subject: --exclude no longer works against arguments with a directory name
Date: Fri, 11 Dec 2015 10:31:11 +0100
In grep 2.22, --exclude no longer works in some cases:

$ cd /usr/share/doc/grep
$ grep e --exclude README README

is OK, but not:

$ grep e --exclude README /usr/share/doc/grep/README
  Copyright (C) 1992, 1997-2002, 2004-2015 Free Software Foundation, Inc.
[...]

This breaks at least one of my scripts, where --exclude is used to
exclude filenames generated with globbing.

After reverting to grep 2.21, this problem disappeared.

My Debian bug report:
  https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=807641

-- 
Vincent Lefèvre <vincent <at> vinc17.net> - Web: <https://www.vinc17.net/>
100% accessible validated (X)HTML - Blog: <https://www.vinc17.net/blog/>
Work: CR INRIA - computer arithmetic / AriC project (LIP, ENS-Lyon)




This bug report was last modified 9 years and 142 days ago.

Previous Next


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