2480 Commits

Author SHA1 Message Date
Ville Skyttä
fdae59d057 Simplify python _filedir glob. 2010-11-21 20:35:25 +02:00
Ville Skyttä
d5a7346390 Add some python option arg non-completions. 2010-11-21 20:30:42 +02:00
Ville Skyttä
4b2c511e2d Get python options with _parse_help(). 2010-11-21 20:29:45 +02:00
Ville Skyttä
d1be965eee Install python completion for python2 and python3 too. 2010-11-21 20:02:12 +02:00
Ville Skyttä
7df38d3c5d Indentation fixes. 2010-11-21 20:00:34 +02:00
Ville Skyttä
96908c87f1 Add lsof(8) completion. 2010-11-21 19:59:38 +02:00
Ville Skyttä
76cf12bc19 Add perl -d: completion. 2010-11-19 22:12:46 +02:00
Ville Skyttä
e9bf8773ec Add perl -V completion. 2010-11-19 22:12:43 +02:00
Ville Skyttä
43ec91619d Add perl -m-/-M- completion. 2010-11-19 22:11:48 +02:00
Ville Skyttä
ee1374f70b Add some perl option non-completions. 2010-11-19 22:10:46 +02:00
Ville Skyttä
2f0948083d Invoke perl module completion with the perl executable being completed. 2010-11-19 21:57:38 +02:00
Ville Skyttä
42589ab9dc Simplify perldoc _filedir arg. 2010-11-19 21:54:53 +02:00
Freddy Vulto
11da957e45 (testsuite) `match_items()' matches on bash-prompt
Also made `match_items()' more strict about matching
space/newline/prompt after the last item.

Added options to match_items():
- end-newline
- end-prompt
- end-space
and transferred them to other functions.

Function `assert_complete()' now has a `-nospace' option to explicitly
disallow a space after a completion...

Function `assert_bash_list()' now expects a single item to be followed
by a newline.
2010-11-17 23:36:58 +01:00
Freddy Vulto
bc0bf2815c (testsuite) Uncomment testcases 2010-11-16 23:21:05 +01:00
Freddy Vulto
7e8fe15484 Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2010-11-16 23:09:59 +01:00
Freddy Vulto
69f9c7c77e (testsuite) Fix _count_args tests to output newline
assert_bash_list() expects a newline terminated list

Plus small fixes to assert_bash_list_dir()
2010-11-16 23:06:13 +01:00
Guillaume Rousse
d2e8e66f09 fix optimisation (bug #312832), and explain the code 2010-11-16 23:05:08 +01:00
Guillaume Rousse
2b6f8de738 drop -o nospace option (fix #312831) 2010-11-16 22:32:13 +01:00
Ville Skyttä
c4eaba636f (testsuite) Add some perl module completion test cases (Alioth: #312832).
The -MFile::Sp and -MFile::Spec::Func test cases fail at the moment
but are not marked as expected failures, hoping for a quick fix for
the above bug ;)
2010-11-16 23:20:46 +02:00
Ville Skyttä
53062bbae2 Don't bother passing unused arg to _perlmodules(). 2010-11-16 22:59:36 +02:00
Ville Skyttä
5b8596231c Fix perl module colon completion trimming. 2010-11-16 22:47:31 +02:00
Ville Skyttä
88924b0cac Comment spelling fix. 2010-11-16 22:25:01 +02:00
Ville Skyttä
6934a508ef Test for availability of compopt before invoking it in _compopt_o_filenames().
Invoking it there on bash < 4 may cause terminal echo to be turned off for
some weird reason (RedHat: #653669).
2010-11-16 21:09:23 +02:00
Ville Skyttä
07f76d8f6c (testsuite) Fix cvs, cvsps, java, lftp, and wol fallout from commit c86b336. 2010-11-13 11:15:47 +02:00
Ville Skyttä
be5c8f4249 (testsuite) Ignore changed OLDPWD in xz.exp. 2010-11-13 10:51:31 +02:00
Freddy Vulto
6feb44ac0f (testsuite) Add missing dir to fixtures/acroread 2010-11-13 09:30:26 +01:00
Freddy Vulto
c86b336769 (testuite) Fix tests to run with autotools' make distcheck
File locations are prefixed with `$::srcdir' so that `make distcheck' can
execute the test suite using a relative path.

The current working directory is removed from the test-suite-bash-prompt.

Furthermore, no more dynamic creation of files in dir $::srcdir/fixtures since
this dir is read-only during `make distcheck'.  Instead create dynamic files in
$TESTDIR/tmp

The test suite uses these "directory" variables

   tcl            bash          description
   ------------   -----------   ------------------------------------
   $::srcdir      $SRCDIR       where `fixtures' reside, relative
   $::srcdirabs   $SRCDIRABS    where `fixtures' reside, absolute
   $::TESTDIR     $TESTDIR      where `runtest' is invoked, absolute
2010-11-12 23:35:36 +01:00
Ville Skyttä
8f0055553b Add/improve various autotools completions. 2010-11-12 21:56:40 +02:00
Guillaume Rousse
4162edf2c1 document COMP_IWLIST_SCAN variable 2010-11-07 21:30:37 +01:00
Guillaume Rousse
6a51790506 test perldoc options completion 2010-11-07 20:17:28 +01:00
Guillaume Rousse
4254f3a4a5 Switch back to a shell completion function for perl and perldoc
completions, using an external helper just for functions and modules
completions. This is overally slower, as our helper outputs all available
modules at once, rather than just one piece of namespace, but this is
more in line with other completions
2010-11-07 20:01:41 +01:00
Guillaume Rousse
fd8ade0077 rename perldoc helper to perl, as it is now a generic perl completion
handler, and use it for perl completion as well
2010-11-07 01:15:02 +01:00
Guillaume Rousse
2d58e69ef9 rework to match original bash function more closely, including options completion 2010-11-06 23:54:17 +01:00
Guillaume Rousse
1f0dd273f7 no need for usage output 2010-11-06 23:42:38 +01:00
Guillaume Rousse
83fc41d5b1 use same indentation convention as for bash code 2010-11-06 23:42:22 +01:00
Freddy Vulto
de51dd3a89 (testsuite) Prepend relative files with $::srcdir
in an attempt to be able to run the tests successfully from within
autotools' `make distcheck'.
2010-11-05 21:28:48 +01:00
Freddy Vulto
0367d0bf57 (testsuite) Moved tool_start() code to tool_init()
${tool}_start was called from within `config/default_exp', but this
proves to be error-prone, because DejaGnu isn't fully initialized at
that point, causing an error when calling one of the DejaGnu methods
pass/fail/unsupported/xfail/unresolved/untested:

    can't read "multipass_name": no such variable

The right way seems to be calling ${tool}_start() from
${tool}_init().
2010-11-05 21:11:57 +01:00
Ville Skyttä
b7937bf2f0 Simplify _screen_sessions(), use compgen -W, fixes partial completion. 2010-11-05 21:28:27 +02:00
Alexey Zaytsev
d68b471905 List both attached and detached sesstions for screen -x
Signed-off-by: Alexey Zaytsev <alexey.zaytsev@gmail.com>
2010-11-05 21:09:08 +02:00
Ville Skyttä
8dc1e86a7a Don't source bash-completion.log when running "make check".
I wonder why does such a file end up in our completions dir, but it
looks like one created by "make check" invocations.
2010-11-05 19:47:25 +02:00
Ville Skyttä
ed3f21b013 Create and remove the test/{log,tmp} dirs when appropriate. 2010-11-05 19:46:53 +02:00
Ville Skyttä
46997c69c8 Don't bother creating the gzipped dist tarball, the bzip2 one is enough. 2010-11-05 18:52:19 +02:00
Ville Skyttä
6172ab4250 Remove autogen.sh, plain autoreconf (-i) is enough. 2010-11-05 18:46:56 +02:00
Freddy Vulto
edce099a45 (install) Fix relocated helpers dir 2010-11-04 22:40:53 +01:00
Freddy Vulto
325b1c2fea (testsuite) Added expected failure for perldoc options completion
perldoc options don't complete anymore
2010-11-03 22:34:35 +01:00
Freddy Vulto
99d8cf290d (testsuite) Fix comment 2010-11-03 22:06:12 +01:00
Freddy Vulto
8daa291d6a Split test in two for ls.exp, expanding ~part
Depending on if user has or hasn't an existing home dir, the test should
respond differently, but it's useful if both tests execute.
2010-11-03 22:00:12 +01:00
Ville Skyttä
642ef5344f Add basic growisofs completion. 2010-11-03 21:11:49 +02:00
Freddy Vulto
dfb84064a4 Fix _tilde with new _compopt_o_filenames 2010-11-03 19:55:38 +01:00
Ville Skyttä
7a174c0e1f Add ip completion (Debian: #600617). 2010-11-01 21:39:03 +02:00