I am trying to write tests for a bash completion script a user of a tool I am developing wrote (so that I can keep it up to date with the tool itself) and I am wondering what the _get_comp_words_by_ref exactly does.
Sample:
local cur prev
if type _get_comp_words_by_ref &>/dev/null ; then
_get_comp_words_by_ref cur prev
else
cur=$2 prev=$3
fi