1721 Commits

Author SHA1 Message Date
Freddy Vulto
567eb37802 Reviewed tests s* 2009-07-31 12:20:51 +02:00
Freddy Vulto
532f0a0e3f Fixed ssh/scp/sftp -F completions
- -F<TAB> (without a space) now also completes.
- Fixed error when completion -F with file containing spaces
- Call _filedir instead of _filedirs in sftp

NOTE: Because the ssh & sftp completions don't have `-o filenames' in
effect, _filedir won't escape spaces in filenames.  This can be seen in
the tests as "expected failures (XFAIL)".  See also:
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2009-July/001766.html

To run the tests:

    cd test && ./runCompletion ssh.exp scp.exp sftp.exp
2009-07-31 12:16:45 +02:00
Freddy Vulto
740c6239b1 Merge branch 'fvu' 2009-07-31 10:41:06 +02:00
Freddy Vulto
f458bada6c Call _filedir instead of _filedirs in screen
NOTE: Because the `screen' completion doesn't have `-o filenames' in
effect, _filedir won't escape spaces in filenames.  See also:
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2009-July/001766.html
2009-07-31 10:38:59 +02:00
Ville Skyttä
f8319fa0ea Add *.lzma to xz, unxz and xzcat completions. 2009-07-30 18:35:58 +03:00
Freddy Vulto
7757969621 Merge branch 'fvu' 2009-07-29 22:14:56 +02:00
Freddy Vulto
91f804f8fb Fixed povray indentation 2009-07-29 22:09:45 +02:00
Ville Skyttä
c86a402077 Load "modules" completion if /etc/profile.d/modules.sh exists even if the "module" alias has not been defined (yet). 2009-07-29 00:22:14 +03:00
Ville Skyttä
e7af368e9b Use $default instead of -o default. 2009-07-29 00:12:54 +03:00
Ville Skyttä
c6360dde51 Trim trailing whitespace (cosmetic, no functional changes). 2009-07-25 13:38:42 +03:00
Ville Skyttä
328bd60242 Add missing line continuation backslash (cosmetic, no functional changes). 2009-07-25 13:36:35 +03:00
Freddy Vulto
6d31b15011 Fix backwards compatibility calls to _known_hosts
This mimics the old behaviour where you could reuse `_known_hosts()' as
a helper function and pass it `-a' or `-c'.
NOTE: Using `_known_hosts' as a helper function and passing options to
`_known_hosts' is deprecated: Use `_known_hosts_real' instead.
2009-07-25 09:35:03 +02:00
Freddy Vulto
ddb0571227 Reviewed tests q* & r*
Added .swp (vim backup) files to .gitignore
2009-07-24 12:33:30 +02:00
Freddy Vulto
53b1c41c16 Reviewed tests p* 2009-07-24 11:58:02 +02:00
Freddy Vulto
3d7321bc68 Fix leaking $i from python completion 2009-07-24 11:52:58 +02:00
Freddy Vulto
285136a8df Reviewed tests o* 2009-07-24 11:20:38 +02:00
Freddy Vulto
890cadbc3a Reviewed tests n* 2009-07-24 11:16:03 +02:00
Freddy Vulto
0d443835c4 Reviewed tests m* 2009-07-24 09:55:54 +02:00
Freddy Vulto
6966cad8cf Fix leaking $i from `man' completion 2009-07-24 09:07:32 +02:00
Ville Skyttä
a490556a5b Fix leaking $prev from _service(). 2009-07-23 00:37:33 +03:00
Freddy Vulto
9bb02ca317 Reviewed tests l* 2009-07-20 21:13:58 +02:00
Ville Skyttä
06eed586ee Add lzcat and unlzma completion. 2009-07-20 20:00:33 +03:00
Ville Skyttä
d3d1a9f895 Add xz, xzcat, xzdec, and unxz completion. 2009-07-20 19:57:36 +03:00
Freddy Vulto
f1f61ace51 Reviewed tests j* & k* 2009-07-19 14:48:55 +02:00
Freddy Vulto
11302d4038 Reviewed tests h* & i*
Localized `i' variable in `info' completion.
2009-07-18 16:55:23 +02:00
Freddy Vulto
c6af1bf435 Reviewed tests g*
Removed excess parenthesis from gdb completion
2009-07-18 09:43:25 +02:00
Freddy Vulto
22675a60f7 Reviewed tests f* 2009-07-17 23:15:15 +02:00
Freddy Vulto
55bc44b035 Reviewed tests e*
Fixed `assert_complete()' to remove an optional (partial) argument from
`cmd' when expecting `cmd + longestCommonPrefix'.
Added `prompt' argument to procs `assert_bash_exec()' &
`sync_after_int()'
2009-07-17 16:15:02 +02:00
Freddy Vulto
f615d17cb6 tsuite) Only test completions if installed
Some tests failed with label `failed', which is incorrect because the
completions just weren't installed.  Completions weren't installed
because the commands to complete weren't installed.
Fixed so that if commands aren't available, the tests fail with label
`unsupported'.
2009-07-16 22:51:18 +02:00
Freddy Vulto
2d905413fb (testsuite) Removed local short timeout values
The local timeout settings `-timeout 1' in some loops seemed to cause
inpredictable results, e.g. with `./runCompletion dkpg.exp' since this
test has a long list to match.  Sometimes the `spawn_id' was gone before
the `teardown' method was called.
Removing the short timeout seems to give more predictable results.
2009-07-16 22:47:44 +02:00
Ville Skyttä
c6e916bece Add reference to Ubuntu bug about disabling PostgreSQL database and user completions. 2009-07-14 21:13:43 +03:00
Ville Skyttä
cbe81a50da Add link to Ubuntu bug about disabling database and user completions. 2009-07-14 21:11:48 +03:00
Ville Skyttä
e34f96e50d Associate *.po with poedit, gtranslator, kbabel, and lokalize. 2009-07-13 18:28:42 +03:00
Freddy Vulto
acdf4ca55e (testsuite) Improve `cancel' with dummy print job
A dummy print job is now created (and removed/cancelled) when testing `cancel' completion.
To run the test:

    cd test && ./runCompletion cancel.exp
2009-07-12 21:41:56 +02:00
Freddy Vulto
7cdd205e76 (testsuite) `assert_complete' uses common prefix
Fix `assert_complete' to expect the longest common prefix to be presented as completion.
When trying to do a:

    package require textutil::string

it appeared DejaGnu overwrites `unknown', the tcl function that is called to attempt autoloading.  A workaround is used for tcl auto-loading to work: `init.tcl' is reloaded to restore the original `unknown' function:

    source [file join [info library] init.tcl]

See also: http://fvue.nl/wiki/DejaGnu:_proc_"tclPkgUnknown_..."_does_not_exist
2009-07-12 21:37:57 +02:00
Freddy Vulto
262c91b486 [testsuite] Improved `match_items()' sorting
`match_items()' now uses bash sort instead of tcl lsort.
The difference in sorting happens because bash and tcl use a different sorting order:
* bash sort uses the current locale's collating sequence and character set
* tcl lsort uses a C-like sort order where each character is sorted according to its numeric value
See also: http://fvue.nl/wiki/Tcl:_Lsort_output_differs_from_bash_sort

This fix allows the `dpkg -L' test to compare all packages.  To run the test:

   ./runCompletion dpkg.exp
2009-07-10 23:08:11 +02:00
Freddy Vulto
3fe193f81a Fix completing multiple hosts (Debian: #535585)
Fixed `_known_hosts_real' to allow for multiple patterns in ssh config, e.g.:

    Host foo.example.net bar.example.net

IFS was set to just newline (\n), whereas `compgen -W' relies on IFS
being space-tab-newline ( \t\n) to expand hostnames which are separated
by whitespace.
Tests are updated as well (added host `jar' to config).  To run the tests:

    ./runUnit _known_hosts_real.exp
2009-07-07 23:05:03 +02:00
Ville Skyttä
0c44194be2 Improve xmllint --dtdvalid, --relaxng, --schema and --schematron completions. 2009-07-07 18:50:56 +03:00
Ville Skyttä
0f18d2327a Add xmlwf completion. 2009-07-07 18:48:22 +03:00
Freddy Vulto
25e4eb6df3 Gave _known_hosts_real mandatory argument CWORD
The option `-h hostname' to `_known_hosts_real' is removed.
2009-07-03 22:28:13 +02:00
Ville Skyttä
a050115f2f Rephrase OO tools -> applications. 2009-07-03 00:53:49 +03:00
Ville Skyttä
c78e27cd7c Associate .tsv with oocalc. 2009-07-02 22:57:01 +03:00
Ville Skyttä
2b56b95caa Associate OOXML/MS Office 2007 extensions with OpenOffice tools. 2009-07-02 22:54:05 +03:00
David Paleino
9f192ba339 Remove -k from avahi-browse call
The original call to avahi-browse also had "-k", to avoid
    lookups into avahi's services DB. We don't need the name
    of the service, and if it contains ";", it may mistify
    the result. But on Gentoo (at least), -k isn't available
    (even if mentioned in the manpage), so...
2009-06-20 22:45:14 +02:00
Freddy Vulto
2770bc6927 Merge branch 'fvu' 2009-06-20 09:37:50 +02:00
Freddy Vulto
8858c8df33 Tidied getopts-check loop in _known_hosts_real 2009-06-20 09:34:46 +02:00
David Paleino
976fafa07e Oops :) 2009-06-20 09:17:06 +02:00
David Paleino
1ab50e301e Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2009-06-20 09:14:35 +02:00
David Paleino
1e532f0f2b Check whether avahi-daemon is started 2009-06-20 09:14:08 +02:00
Freddy Vulto
c769eeaf8c (testsuite) Centralized tcl function `get_hosts' 2009-06-19 14:56:36 +02:00