@Thomas, Yiannis --> any ideas on this issue ??
My opinion on the issue is that if someone uses filenames like
$*µ&foo{bar]]ߧ?#* then he deserves that programs are failing
What's wrong with filenames like "
main.cpp" or "
scheduler.h"?
I've seen people create a file with the name "
*" under Linux (for no other reason than because it is possible) and then trying to delete it with
rm -f *. And I've seen people create files with mixed case under Windows and then wondering why including them with lowercase names under Linux makes the compiler puke.
Regarding special chars and variable replacement, please note that there is a lot more than just
$ to take care of, for example
[[ ]] embeds a script expansion variable.