![](https://seccdn.libravatar.org/avatar/bd4da371900551bee9a06eaefeb7e1c2.jpg?s=120&d=mm&r=g)
Hmmm. That's not supposed to happen!!! Hmmmm. "Conventional wisdom" says that the double-quotes don't protect the asterisk. However, reading the bash man-page we have: "Enclosing characters in double quotes preserves the literal value of all characters within the quotes, with the exception of $, `, and \. The characters $ and ` retain their special meaning within double quotes. The backslash retains its special meaning only when followed by one of the following characters: $, `, ", \, or <newline>. A double quote may be quoted within double quotes by preceding it with a backslash." Historically, this was not the case. At least as far as I remember. I just tested it on my system and the asterisk is not expanded before being passed to find. I then checked a Solaris system at work and it behaves like this as well (*not* expanding the asterisk). I guess there are a lot of UNIX old-timers here who are used to the way it **used to** work that we naturally assume that it still behaves like that. hmmmmm...... Regards, jimmo On Tuesday 26 March 2002 01:25, zentara wrote:
On Mon, 25 Mar 2002 23:38:20 +0100
Anders Johansson
wrote: mkdir blah touch blah/blah.jpg
and try again.
OK, no difference on my machine. What is supposed to happen? I even made blah, blah.jpg, and blah/blah.jpg
zentara@zentara:~/1a > ls blah blah.jpg dobears.jpg flag.jpg frontpage.bmp hula.gif linus.jpg monk.jpg oldglory.ps tux2.jpg
zentara@zentara:~/1a > ls blah OldGlory.jpg blah.jpg frontpage.jpg linus1.jpg tux2.jpg tuxvolt_a.gif
zentara@zentara:~/1a > find . -name "*.jpg" ./blah/blah.jpg ./blah/frontpage.jpg ./blah/linus1.jpg ./blah/OldGlory.jpg ./blah/tux2.jpg ./blah.jpg ./monk.jpg ./flag.jpg ./tux2.jpg ./linus.jpg ./dobears.jpg
zentara@zentara:~/1a > find . -name '*.jpg' ./blah/blah.jpg ./blah/frontpage.jpg ./blah/linus1.jpg ./blah/OldGlory.jpg ./blah/tux2.jpg ./blah.jpg ./monk.jpg ./flag.jpg ./tux2.jpg ./linus.jpg ./dobears.jpg
zentara@zentara:~/1a > find . -name \*.jpg ./blah/blah.jpg ./blah/frontpage.jpg ./blah/linus1.jpg ./blah/OldGlory.jpg ./blah/tux2.jpg ./blah.jpg ./monk.jpg ./flag.jpg ./tux2.jpg ./linus.jpg ./dobears.jpg zentara@zentara:~/1a >
---- $|=1;while(1){print pack("h*",'75861647f302d4560275f6272797f3');sleep(1); for(1..16){for(8,32,8,7){print chr($_);}select(undef,undef,undef,.05);}}
-- --------------------------------------- "Be more concerned with your character than with your reputation. Your character is what you really are while your reputation is merely what others thing you are." -- John Wooden --------------------------------------- Be sure to visit the Linux Tutorial: http://www.linux-tutorial.info --------------------------------------- NOTE: All messages sent to me in response to my posts to newsgroups or forums are subject to reposting.