I'm using the complete bash-builtinin to enable arbitrary auto-completion for my python script. I set it up with:
complete -C './script.py --compgen "$@"' ./script.py
Such that whenever bash attempts to auto-complete it invokes my script with a flag --compgen that tells my script to do auto completion. This works fine.
However I want to be able to fall-back to bash's default behaviour in some situations from within script.py. Is there a way to tell complete that it should rerun without calling my script and do its default-thing instead?
Basically, I want to avoid re-implementing file-name expansion, when referring to a file.