Actually, ignore the question about "complete -p bash", it's not relevant here.
But if you instead could try to run bash with verbose diagnostics on for a while, that might be useful.
The verbose diagnostics will spew out stuff on the terminal when you attempt completion, as well as when commands execute. You enable it with "set -vx" and turn it off with "set +vx".
Actually, ignore the question about "complete -p bash", it's not relevant here.
But if you instead could try to run bash with verbose diagnostics on for a while, that might be useful.
The verbose diagnostics will spew out stuff on the terminal when you attempt completion, as well as when commands execute. You enable it with "set -vx" and turn it off with "set +vx".
Like this:
vnix$ set -vx ${USER} @${HOSTNAME} : ${PWD/$HOME/~}\007"
echo -ne "\033]0;
++ echo -ne '\033]0;era@indeed: ~\007'
vnix$ echo $HOM<TAB> ${USER} @${HOSTNAME} : ${PWD/$HOME/~}\007"
vnix$ echo $HOME<RET>
+ echo /home/era
/home/era
echo -ne "\033]0;
++ echo -ne '\033]0;era@indeed: ~\007'
vnix$ cd $HOM<tab> ${USER} @${HOSTNAME} : ${PWD/$HOME/~}\007"
+ local 'IFS=
' 'cur=$HOM' i j k
+ [[ $HOM == ?(\\)\$* ]]
+ COMPREPLY=($( compgen -v -P '$' -- "${cur#?(\\)$}" ))
compgen -v -P '$' -- "${cur#?(\\)$}"
++ compgen -v -P '$' -- HOM
+ return 0
\$HOME
vnix$ cd \$HOME<RET>
+ cd '$HOME'
bash: cd: $HOME: No such file or directory
echo -ne "\033]0;
++ echo -ne '\033]0;era@indeed: ~\007'
vnix$ set +vx
set +vx
+ set +vx
vnix$