TAB file name expansion doesn't work in the middle of a string. In my cwd are two files, 'myfilename' and 'myfiletest'.Typing ls -l myfilename and then moving back to the end of myfile to type TAB inserts a space instead of expanding the string left of the cursor to myfiletest.
Josh