I am a newbie for shell script.
I noticed that for command like:
tar cf test.tar *TEST* *TEST2*
sh and bash will expand TEST to a list of file names, while csh will not. I want the shell not to expend, how can I do this?
Use ' or " will lead to other problems. If there is files match pattern *TEST*, but no files match *TEST2*, then the tar will fail.
[EDIT]I think this is an expend difference between bash and csh. When no pattern found for *TEST*, csh will expend to "", while bash will expend to 'TEST' (add quote char).