posern@stud-mailer.uni-marburg.de wrote:
> for a in `find /tmp/bla -iname "*.mp3" -printf "\"%f\" "`; do
> echo "'$a'"; done
The expansion of the find command is subjected to word splitting,
since it is unquoted. The quotes printed by find are just output
text, not syntactic quotes, so they cannot change the word splitting.
This will do what you want:
for a in /tmp/bla/*.[mM][pP]3; do echo "'$a'"; done
> tmp=`find /tmp/bla -iname "*.mp3" -printf "\"%p\""`;
> echo "tmp='$tmp'"
In this case, the expansion is not subjected to word splitting, even
though it is unquoted, because it is part of an assignment.
> # Is this a bug or a feature?
A feature.
paul