I have env variable $SCRIPT. Normaly I can use autocompletevim $SC<tab>and completion works as expected. On some systems it does not work. I have bash completion loaded, but completion in these cases works only with directories (cd $SCRIPT_DIREC<tab> is working).Mostly I have problem with bash 4.2.What shopt can enable it?EDIT: I have compared my shopt settings with Bash 4.3 where it's working and Bash 4.2 (Ubuntu server 12.04) where is NOT working, there were few differences (most of them 4.3 specific), set the rest the same, but nothing worked.
Bash autocomplete variables for other commands than cd
bash;autocomplete