Fix perldoc completions to run without invoking autotools
Alioth #312729 See also: http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg02143.html
This commit is contained in:
parent
ec82c536ed
commit
ef8b4f2722
@ -1,4 +1,4 @@
|
||||
SUBDIRS = completions helpers test
|
||||
SUBDIRS = completions test
|
||||
|
||||
sysconf_DATA = bash_completion
|
||||
|
||||
|
@ -49,7 +49,7 @@ _perl()
|
||||
}
|
||||
complete -F _perl -o nospace -o filenames perl
|
||||
|
||||
complete -C $BASH_COMPLETION_DIR/helpers/perldoc -o nospace -o default perldoc
|
||||
complete -C ${BASH_SOURCE[0]%/*}/helpers/perldoc -o nospace -o default perldoc
|
||||
}
|
||||
|
||||
# Local variables:
|
||||
|
@ -3,5 +3,5 @@ AC_INIT([bash-completion], [1.99])
|
||||
AM_INIT_AUTOMAKE([foreign dejagnu dist-bzip2 -Wall -Werror])
|
||||
AC_SUBST(bashcompdir, $sysconfdir/bash_completion.d)
|
||||
AC_SUBST(helpersdir, $sysconfdir/bash_completion.d/helpers)
|
||||
AC_CONFIG_FILES([Makefile completions/Makefile helpers/Makefile test/Makefile])
|
||||
AC_CONFIG_FILES([Makefile completions/Makefile completions/helpers/Makefile test/Makefile])
|
||||
AC_OUTPUT
|
||||
|
@ -11,12 +11,6 @@ proc teardown {} {
|
||||
setup
|
||||
|
||||
|
||||
assert_complete_any "perldoc -"
|
||||
|
||||
|
||||
sync_after_int
|
||||
|
||||
|
||||
set test "perldoc should complete word containing colons"
|
||||
set cmd "perldoc File::"
|
||||
send "$cmd\t"
|
||||
|
Loading…
x
Reference in New Issue
Block a user