-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 According to Hongyi Zhao on 1/9/2009 6:38 AM: > But I cann't figure this out, see the following results on my box: > > $ echo [ -f *.cache-2 ] > [ -f *.cache-2 ]
That means there aren't any *.cache-2 files in your directory. Next, try this: $ touch a.cache-2 b.cache-2 $ echo [ -f *.cache-2 ] [ -f a.cache-2 b.cache-2 ] See how you just gave 2 arguments (instead of the expected 1) to [ -f? - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iEYEARECAAYFAklnYOoACgkQ84KuGfSFAYCkNACgx8OENtoEVdq74p/xmNi+2xUY YogAn2P59SahElPzMaV6F4zMpBeod0MG =hW6u -----END PGP SIGNATURE----- -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/