-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Boyd Stephen Smith Jr. wrote:
| On Friday 14 January 2005 07:00 am, Ow Mun Heng <[EMAIL PROTECTED]>
| wrote:
|
|>I was using
|>
|>find . -type f -maxdepth 1 -iname *gentoo*
|>
|>and that didn't work. How come?? (it lists everything!)
|
|
| *gentoo* was being expanded by bash; I'm not sure why find didn't give
you
| an error.
Presumably because it wasn't an error - bash was expanding *gentoo* to a
list of files, such as;
$ find . -type f -maxdepth 1 -iname *gentoo*
bash expands to;
$ find . -type f -maxdepth 1 -iname digest-gentoo-sources-2.4.20-r31
digest-gentoo-sources-2.4.25-r15 ...
which is a valid command line. However, if no files in the current
directory had matched *gentoo* then it would no doubt have thrown an
error :)
Matt
- --
http://www.mattsscripts.co.uk/
~ - A great source for free CGI and stuff
DPRINTK("Last time you were disconnected, how about now?\n");
~ linux-2.6.6/drivers/net/tokenring/ibmtr.c
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.5 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
iD8DBQFB6F53ms1059AAPcwRAoXRAKChsF5D5QhmbpMhzP6l4tqJF9wYYACfSW3P
tMHvFhtEojgkB2XBfHl7u/M=
=Tqup
-----END PGP SIGNATURE-----
--
[email protected] mailing list