Hello,
i wrote a code to call a function, the parameter when calling is a path to a directory.
the following code is simular:
My Function
check_folder_content()
{
…
}
Call function for each folder
for myFolder in $(find „${c_my_startpath}SomeSubFolder/“ -name „*“ -type d)
do
echo „DEBUG: call function with: ${myFolder}“ >> $c_logFile
check_folder_content „${myFolder}“
done
Now, when getting a Folder like this: „/Blub/SomeSubFolder/Good/Path/aa problem directory“ the logFile says:
DEBUG: call function with: /Blub/SomeSubFolder/Good/Path/aa
DEBUG: call function with: problem
DEBUG: call function with: directory
So, the call is definitly wrong (3 times, but never the right path).
What must I change to fix this issue?