Hey, I have a bash script:
http://riji.lv/hiro.txt
In there I run the command:
Code:
find $dir -type -f $FCL
where "$FCL" is something like "( -iname *.foo -print -o -iname *.bar -print )"
This works fine if I assign it to a variable, such as:
Code:
fList=`find $dir -type f $FCL`
however when I try this in a for loop such as:
Code:
for file in $( find $dir -type -f $FCL );
I get:
Code:
find: invalid predicate `( -iname *.foo -print -o -iname *.bar -print )'
I have no idea why this is happening, I've attempted a few things, putting things in quotes, writing the variables like ${FCL} etc.. nothing seems to matter. Any ideas welcome...