Hi there, thanks for taking the time to report this. What you're seeing,
however, isn't a bug but a result of how the shell is handling *test*.
When you type "find -iname *atest*", bash tries to expand *atest* by
looking in the current directory. When it doesn't find anything, it
leaves *atest* unchanged and things work as you want.
When you typed "fine -iname *test*", bash again tried to expand *test*.
This time, it found "123 test 123". It replaced *test* with "123 test
123", and passed it to find. So what was really executed in this case
was "find -iname '123 test 123'". Find correctly found exactly one match
in this case.
To make sure bash leaves your *test* alone, you need to put quotes around it.
Something like this:
find -iname "*test*"
and it should work as you expect.
Closing this as not-a-bug.
Hope that helps!
** Changed in: findutils (Ubuntu)
Status: New => Invalid
--
find: stops when directory matched
https://bugs.launchpad.net/bugs/661642
You received this bug notification because you are a member of Ubuntu
Bugs, which is subscribed to Ubuntu.
--
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs