[CentOS] bash - safely pass untrusted strings?

Tue Feb 26 23:19:39 UTC 2008
Stephen Harris <lists at spuddy.org>

On Tue, Feb 26, 2008 at 01:51:28PM -0800, Benjamin Smith wrote:
> Unless I'm terribly mistaken (again?), the only way I've been able to 
> see "loop thru a list of files" work reliably is with "find" using 
> the "-print0" option, in cahoots with xargs. 

What is it you're trying to do?  You typically only need to use "find"
if you want to recursively descend a directory tree.  Otherwise simple
globs will do the job

  for a in *
  do
    blah "$a"
  done

-- 

rgds
Stephen