2552 Commits

Author SHA1 Message Date
David Paleino
25be9912b1 Fixed typo in openssl completion (Debian: #609552)
Conflicts:

	CHANGES
2011-01-10 17:27:50 +01:00
David Paleino
a5e203cfe5 Merge branch 'master' into 1.x
Conflicts:
	CHANGES
	configure.ac
2011-01-09 18:19:18 +01:00
Ville Skyttä
fe2d7645df Re-enable postgresql database and user completion (Alioth: #312914, Ubuntu: #164772).
This implementation uses -w which is available only in psql >= 8.4,
but the net effect with earlier versions should be the same as when
the completions were disabled.
2011-01-08 23:28:38 +02:00
Ville Skyttä
b1dbd1d712 (testsuite) Fix sysctl test case (Alioth: #312909). 2011-01-05 22:59:05 +02:00
Ville Skyttä
bda497eb58 Add bunch of java option completions, improve colon handling. 2011-01-04 19:07:30 +02:00
Ville Skyttä
6c21f88456 Append /sbin to PATH when invoking sysctl. 2011-01-04 00:19:48 +02:00
Ville Skyttä
bc8bfb7ba8 Note test suite dependencies. 2011-01-03 00:01:55 +02:00
Ville Skyttä
d37b36605e Do _filedir in _command_offset only for commands with no completions installed.
If we have a completion installed for the actual command invoked via
sudo etc, it is very much possible and fine that no completions are
returned from it, and doing _filedir in these cases is not the right
thing to do.
2011-01-02 23:49:58 +02:00
Ville Skyttä
24a37fc840 Note autotools installation steps. 2011-01-02 23:43:28 +02:00
Ville Skyttä
15bc11769b Improve scp path escape regex.
The previous one reportedly ended up escaping 't' to '\t' in some
setups (at least bash 3.2.48 on OS X 10.6, but not with 4.1.7 on
Fedora nor 3.2.25 on CentOS), probably due to missing backslash in the
regex.  This one removes some spurious escaping and duplicates in the
char class, and should communicate the intent better.
2010-12-23 22:05:55 +02:00
Ville Skyttä
2d4ebbaf25 Ignore muttrc source entries that are not files (Alioth: #312881). 2010-12-20 23:46:47 +02:00
David Paleino
cd8dcff223 Oops, add info to CHANGES for last commit 2010-12-18 23:38:43 +01:00
David Paleino
c55dfe6982 Complete on all files for mplayer's -dvd-device.
This is because mplayer is able to use a directory as "device" (i.e. if you
  copy a DVD on the harddisk), or even single files (.iso files, for example).
2010-12-18 23:23:59 +01:00
Ville Skyttä
1110fcadb1 Do not load bash_completion in profile.d script if progcomp is not enabled. 2010-12-18 12:56:28 +02:00
Ville Skyttä
0ceca807c5 Add *.apk to unzip and jar filename completions. 2010-12-16 19:59:41 +02:00
Ville Skyttä
c5957792ab Turn on -o filenames in _command_offset() for completions that specify it.
We don't need to do "complete -o filenames ..." when installing
bash-completion completions any longer (they should be handled
"internally"), but there are external completions which do that and
need it in effect also when completing with nice, sudo and friends.
2010-12-13 21:33:46 +02:00
Ville Skyttä
70d5ff09e0 Add *.spkg (Sage Package) to tar filename completions. 2010-12-11 12:56:52 +02:00
Ville Skyttä
6e12e1a2aa Add *.gz versions of supported filenames to xmllint filename completions. 2010-12-09 22:58:01 +02:00
Ville Skyttä
c81b87fbd3 Make _command_offset() do the right thing with full path completions.
For example, "sudo /usr/sbin/useradd" completion didn't work properly,
whereas "sudo useradd" did.
2010-12-04 21:07:03 +02:00
Ville Skyttä
a0e7299717 (testsuite) assert_complete_one() fixes, revealed by ssh.exp. 2010-11-23 09:17:53 +02:00
Freddy Vulto
5a38f828d4 (testsuite) Split assert_complete() into
assert_complete_many() and assert_complete_one().
Fix ssh completion now that match_items() also matches on prompt.
2010-11-22 22:57:00 +01:00
Ville Skyttä
c1d3cdad70 python -c takes a command, not a script. 2010-11-21 20:36:09 +02:00
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