I did some testing and blackslash-escaping also works:

find /home/yjin/apps/solr-nightly/example/solr/data/ -name snapshot.\*
-print

Hui, can you verify that?

I am already using single quote in the snappuller script to specify the find
command
to as an argument to ssh.  I could change that to double quote and then use
single quote for snapshot.*, or blackslash escape the *.

I am fine with either way.  Does anyone has any strong preference?
If not, I will just randomly choose one.

Bill

On 10/31/06, Mike Klaas <[EMAIL PROTECTED]> wrote:

On 10/31/06, Chris Hostetter <[EMAIL PROTECTED]> wrote:

> Bill: what do you think about explicitly putting in the single quotes as
> Hui suggested?  that should still work under bash and sh right?

That should work in bash, at least.  Backslash-escaping is also an option.

The semantics of file globbing in bash are irritating.

-Mike

Reply via email to