[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug #18430] Problem with solving '{}' brackets

From: Bob Proulx
Subject: Re: [bug #18430] Problem with solving '{}' brackets
Date: Sun, 3 Dec 2006 06:22:15 -0700
User-agent: Mutt/1.5.9i

James Youngman wrote:
> While "-exec sh ..."  would change this behaviour, don't do that as it is
> very insecure.

Insecure?  In what way?

I envision something like this:

  find . -name "foo*" -exec sh -c "file {} >{}.tmp" \;

Of course running this repeatedly is a problem unless it gets more
complicated to avoid creating more files than desired.

  find . -name "foo*.tmp" -prune -o -name "foo*" -exec sh -c "file {} >{}.tmp" 

What problem should I be aware of in the above?


reply via email to

[Prev in Thread] Current Thread [Next in Thread]