Le 31/10/2010 23:59, Freddy Vulto a écrit : > The remaining error reported by the test suite however, was that perldoc > option-completion is now missing; it's not in the pure perl perldoc > completion helper, whereas the code underneath was in the bash perldoc > completion: > > - if [[ "$cur" == -* ]]; then > - COMPREPLY=( $( compgen -W '-C -s -T -u -U -W -X -h -v -V -c -w -d \ > - -D -p -n -a -F -l -0 -I -m -M -P -S -x -i -e ' -- "$cur" ) ) > > Are you aware of that? Anyway, I removed the test case from the test suite > for > now. Good catch, I didn't notice.
I just fixed this, and also generalized the helper to be used for perl command also. Now we have 100% pure perl completions for those commands, allowing to get rid of ugly perl oneliners embedded in shell functions for listing perl modules. However, we also have to reimplement compgen -d, and filedirs, with no garanty of providing a consistent behaviour :/ I wonder if the correct solution would be to keep a shell completion functions, and only delegate the specialized parts (modules and function completions) to external perl code. -- BOFH excuse #281: The co-locator cannot verify the frame-relay gateway to the ISDN server.
smime.p7s
Description: S/MIME Cryptographic Signature
_______________________________________________ Bash-completion-devel mailing list [email protected] http://lists.alioth.debian.org/mailman/listinfo/bash-completion-devel
