On 19-Jan-99 Michael Meskes wrote:
> Hi,
> 
> I have a small sh script that does essantially the following:
> 
> variable=`find . -print`
> 
> for file in $variable
> do
>       <some stuff>
> done
> 

try:

for file in `find . -print`
do
        ${file}
done

The braces should help keep the variable consistent.  So far I see nothing
"bash" here.  This is also a valid ksh or ash script.  If you leave off the
'function' keyword many supposed bash scripts are valid bourne scripts.

Reply via email to