[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug #51711] non-helping error output with find
From: |
Assaf Gordon |
Subject: |
[bug #51711] non-helping error output with find |
Date: |
Wed, 16 Aug 2017 16:20:33 -0400 (EDT) |
User-agent: |
Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/60.0.3112.90 Safari/537.36 |
Follow-up Comment #3, bug #51711 (project findutils):
Hello all,
Since this type of erroneous usage is so common (forgetting to quote the shell
glob pattern), perhaps it's worth detecting this case and giving a specific
hint?
See the attached (mostly untested) patch, which gives:
$ touch a.txt b.txt c.txt
$ find -name *.txt
find: paths must precede expression: `b.txt'
find: possible unquoted pattern after predicate `-name'?
regards,
- assaf
(file #41546)
_______________________________________________________
Additional Item Attachment:
File name: 0001-find-give-helpful-hint-for-unquoted-patterns-errors.patch
Size:1 KB
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?51711>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
- [bug #51711] non-helping error output with find, anonymous, 2017/08/09
- [bug #51711] non-helping error output with find, Dale Worley, 2017/08/09
- [bug #51711] non-helping error output with find, Bernhard Voelker, 2017/08/16
- [bug #51711] non-helping error output with find,
Assaf Gordon <=
- [bug #51711] non-helping error output with find, Bernhard Voelker, 2017/08/18
- [bug #51711] non-helping error output with find, Bernhard Voelker, 2017/08/18
- [bug #51711] non-helping error output with find, anonymous, 2017/08/28
- [bug #51711] non-helping error output with find, anonymous, 2017/08/28
- [bug #51711] non-helping error output with find, Bernhard Voelker, 2017/08/28
- [bug #51711] non-helping error output with find, anonymous, 2017/08/29
- Re: [bug #51711] non-helping error output with find, kalle, 2017/08/29
Re: [bug #51711] non-helping error output with find, Bernhard Voelker, 2017/08/10