Collect results in for loop when run shell script I try to collect results of "svn info" for selected folders by run shell script,like this:

for f in "$@"; do
    svn info $f | tee -a $log_file
done


But it's not work. How can I collect each result in for loop?
The problem is that "Automator" is not support some encoding such as GB18030.Once your file name encoding with them, they can't be convert to utf-8 , it returns a error.