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/