[wplug] find & -exec / -ok

Jonathan S Billings billings at negate.org
Fri Sep 26 09:13:30 EDT 2003


On Fri, 2003-09-26 at 08:51, Vanco, Don wrote:
> kuzman at sccs.swarthmore.edu <mailto:kuzman at sccs.swarthmore.edu> scribbled on
> Thursday, September 25, 2003 5:59 PM:
> > On Thu, Sep 25, 2003 at 04:15:48PM -0400, Vanco,  Don wrote:
> >> I expect that this:
> >> find . -name *.ini -exec rm {} \;
> > 
> > I think you need to escape the * to tell your shell not to glob it:
> > 
> > find . -name \*.ini -exec rm {} \;
> > 
> > or
> > 
> > find . -name "*.ini" -exec rm {} \;
> 	
> 	Both of these iterations work for both -exec and -ok when under X
> when running gnome-multi-terminal.  
> 
> 	To address other posts in this thread - I also tested my original
> syntax against xterm, uxterm, and gnome-terminal (that's all I have
> installed) and in all cases I did NOT have to escape the wildcard or enclose
> it in quotes to get the find action to work.  I have reported this behavior
> to the package maintainer

I would think that the wildcard expansion would have been handled by the
shell, and the virtual terminal wouldn't play much of a difference.


-- 
Jonathan S Billings <billings at negate.org>
TSFNKP, President and Chief Lackey




More information about the wplug mailing list