bug-findutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


From: Bernhard Voelker
Subject: [bug #62255] find -iname *Word* and find -iname *word* give different results
Date: Tue, 5 Apr 2022 14:32:28 -0400 (EDT)

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/




reply via email to

[Prev in Thread] Current Thread [Next in Thread]