Hi,
when tilde-expanding in function _tilde(), the following line
COMPREPLY=( $( compgen -P '~' -u "${1#\~}" ) )
does not protect $1 by preceding it with "--", which means that if $1 starts
with ~- (the $OLDPWD tilde-prefix), compgen will try to interpret characters
after the - as options.
Example: tab-completion of of "mv ~-o":
$ mv ~-obash: compgen: -o: option requires an argument
compgen: usage: compgen [-abcdefgjksuv] ...
Nothing too terrible, but still ugly, and easily fixed.
Thanks and have a nice day,
Nikolaus