I had these errors when I tried out completion on Ubuntu 12.04.4 LTS. It typed "git he" and pressed tab to see if it would complete the word "help":
$ ./bash -l bash: warning: shell level (5404176) too high, resetting to 1 danny@danny-ubuntu ~/wrk/ksh/ast-ksh.2014-06-25/arch/linux.i386-64/bin $ git he<tab> This is what happens next (btw, it backspaced over the 'e'): $ git hbash: _upvars: cword: invalid option ./bash: _git[22803]: compgen[3]: add: not found [No such file or directory] ./bash: _git[22803]: compgen[4]: get-tar-commit-id: not found [No such file or directory] ./bash: _git[22803]: compgen[5]: reflog: not found [No such file or directory] ./bash: _git[22803]: grep: no pattern ./bash: _git[22803]: compgen[7]: relink: not found [No such file or directory] ./bash: _git[22803]: compgen[8]: am: not found [No such file or directory] ./bash: _git[22803]: compgen[9]: gui: not found [No such file or directory] ./bash: _git[22803]: compgen[10]: remote: not found [No such file or directory] ./bash: _git[22803]: compgen[11]: annotate: not found [No such file or directory] ./bash: _git[22803]: compgen[12]: apply: not found [No such file or directory] (Many more similar errors after this) On 5 July 2014 09:33, Dan Douglas <orm...@gmail.com> wrote: > "FUNCNAME" might be good to have because it's related to "BASH_SOURCE" in a > similar manner as ".sh.fun" and ".sh.file". > > I tried implementing FUNCNAME using the debugger. The trouble is expanding > "${FUNCNAME[@]}". The hack on the last line makes it sort-of work by pushing > new elements on the end during expansion, but then it can't shrink. > > function FUNCNAME.get { > nameref self=${.sh.name} > if (( .sh.subscript < .sh.level )); then > trap "(( .sh.level -= .sh.subscript + 1 )); eval '(( .sh.level = > ${.sh.level} ))' \; _=\${.sh.fun}" DEBUG > trap - DEBUG; > fi > > (( .sh.subscript < .sh.level - 2 )) && self[.sh.subscript + 1]= > } > > Still lots of goodies in RELEASE I've yet to play with. > -- > Dan Douglas > _______________________________________________ > ast-developers mailing list > ast-developers@lists.research.att.com > http://lists.research.att.com/mailman/listinfo/ast-developers -- Regards Danny _______________________________________________ ast-developers mailing list ast-developers@lists.research.att.com http://lists.research.att.com/mailman/listinfo/ast-developers