Subject: --exclude no longer works against arguments with a directory name

From: Vincent Lefevre <[email-masked]>
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 <[email-masked]> - 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)