[CentOS] bash - safely pass untrusted strings?

Tue Feb 26 23:29:35 UTC 2008
Les Mikesell <lesmikesell at gmail.com>

Stephen Harris wrote:
> On Tue, Feb 26, 2008 at 04:33:30PM -0600, Les Mikesell wrote:
>> 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. 
>>>
>>> Is there any other way? 
>> for $file in wildcard*
> 
> No $ needed there!!!

Good catch - I must have been thinking partly in perl.

-- 
   Les Mikesell
     lesmikesell at gmail.com