The important fact the OP seems to be ignoring is that the shell interprets
red5* before passing it to whatever command (
find in this case) was specified.
If there are any files in the shell's current directory matching
red5*, then the shell will replace the
red5* in the command line with the list of such files.
Quote:
Originally Posted by tkmsr
If some one reads man page of find
|
The man page for each individual command is not supposed to remind you of behaviors of the shell. It tells you what
find does with the command that the shell passes to
find.
Quote:
Originally Posted by tkmsr
What had directories to do
when I had already passed /
to start search from /
|
That
/ tells
find where to search. It does not mean anything to the shell, especially not to the shell's processing of
red5*.
As you were already told earlier in this thread, if you want
find to get the
red5* without the shell processing it first, use
"red5*"