[bug #62255] find -iname *Word* and find -iname *word* give different results

Bernhard Voelker <[email protected]>
Newsgroups gmane.comp.gnu.findutils.bugs
Message-ID <[email protected]>
Update of bug #62255 (project findutils):

                  Status:                    None => Need Info              
             Assigned to:                    None => berny                  

    _______________________________________________________

Follow-up Comment #3:

The last try leads to the suspicion that the search failed
because the pattern was not quoted correctly.


$ touch {1..3}{w,W}ord{1..3}

$ ls
1Word1  1Word2  1Word3  1word1  1word2  1word3  2Word1  2Word2  2Word3  2word1
 2word2  2word3  3Word1  3Word2  3Word3  3word1  3word2  3word3

$ find -iname *word*
find: paths must precede expression: `1word2'
find: possible unquoted pattern after predicate `-iname'?

# Show how find was really invoked.
$ echo find -iname *word*
find -iname 1word1 1word2 1word3 2word1 2word2 2word3 3word1 3word2 3word3

# Correctly quoted to prevent globbing by the shell.
$ find -iname '*word*' | wc -l
18


Is it that?


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/bugs/?62255>

_______________________________________________
  Message sent via Savannah
  https://savannah.gnu.org/
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.