I have created some bash completion functions that all appear to work in isolation but give me unexpected results when I attempt to tab complete with them.
Is it possible to connect bashdb, then attempt to tab complete something and step through to debug and determine what is going wrong?
set -xin bash to debug your scripts. Useset +xto disable. – hesse Jan 6 at 20:29