bug#68666: warning if --exclude-dir arg contains /?

2024-01-22 Thread Karl Berry
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 director

bug#68666: warning if --exclude-dir arg contains /?

2024-01-22 Thread Paul Eggert
On 2024-01-22 15:48, Karl Berry wrote: 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. That's not quite true, as it can match command-line arguments. Fo