[CentOS] bash - safely pass untrusted strings?
Stephen Harris
lists at spuddy.orgTue Feb 26 23:19:39 UTC 2008
- Previous message: [CentOS] bash - safely pass untrusted strings?
- Next message: [CentOS] bash - safely pass untrusted strings?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
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
- Previous message: [CentOS] bash - safely pass untrusted strings?
- Next message: [CentOS] bash - safely pass untrusted strings?
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
More information about the CentOS mailing list