2287 Commits

Author SHA1 Message Date
Freddy Vulto
827ad88ebb (testsuite) Expand PATH with 'sbin' directories
This allows for testing completions of system administrator commands,
which are installed via the same PATH expansion in
`bash_completion.have()'
2010-04-22 22:22:50 +02:00
Ville Skyttä
da990d18d9 Use generic long option instead of HTML file completion for curl. 2010-04-21 23:45:39 +03:00
Ville Skyttä
c5348d8678 Run delegated test tools/scripts with exec. 2010-04-21 23:34:27 +03:00
Ville Skyttä
f9f49786ca Fix running test scripts without giving a path to them.
For example "cd test ; bash runCompletion [...]".
2010-04-21 23:19:34 +03:00
Ville Skyttä
a7cd88bb67 Invoke "run" with the same bash as runCompletion and runUnit are run with.
Makes things a bit easier on systems that don't have bash installed in /bin.
2010-04-21 23:05:13 +03:00
Ville Skyttä
be649e63be Set cancel test outcome to untested, not unresolved if adding a test job fails.
E.g. lp installed, but lpd not running which is not a rare scenario.
2010-04-21 20:30:49 +03:00
Ville Skyttä
1267cf8bd2 Add some more missing basic testcases. 2010-04-21 19:45:33 +03:00
Ville Skyttä
38e9ef18b2 Fix leak of $arg from hcitool and cryptsetup completions. 2010-04-21 19:25:02 +03:00
Ville Skyttä
1017a085a9 Add bunch of missing basic testcases. 2010-04-21 19:20:35 +03:00
Ville Skyttä
807ddd4105 lzma groks *.tlz. 2010-04-21 19:12:05 +03:00
Ville Skyttä
e270eb18e3 Improve filesystem type completions. 2010-04-21 19:07:17 +03:00
Ville Skyttä
65fd4f1798 Fix indentation. 2010-04-21 00:29:45 +03:00
Guillaume Rousse
eeea73c93e Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2010-04-19 20:48:05 +02:00
Guillaume Rousse
08e7a2cbfd initial import 2010-04-19 20:47:50 +02:00
Ville Skyttä
7fc1fa88a8 Fix handling of short xz options.
Was broken in 8f42adfa8d5e9fbbba9566d1b76d9f89667e6d98
2010-04-19 21:36:47 +03:00
Ville Skyttä
b19c948a95 Add basic xz tests. 2010-04-19 21:21:19 +03:00
Ville Skyttä
6471ebb541 Note Igor's xz improvement. 2010-04-19 21:19:34 +03:00
Igor Murzov
43421d781b Add .txz and .tlz to the list of known extensions for xz 2010-04-19 21:10:47 +03:00
Guillaume Rousse
e28d19ef4c initial import 2010-04-19 19:59:47 +02:00
Guillaume Rousse
b6762781b8 initial import 2010-04-19 19:45:24 +02:00
Guillaume Rousse
89de94b2c7 fix interface completion, nd use _get_pword function 2010-04-19 19:45:06 +02:00
Freddy Vulto
96a936443e (testsuite) Run tests for superuser commands only if command is available
Case was /usr/sbin/grub.
Added check to `assert_source_completions()' if command is really
available for current user.
2010-04-17 08:16:37 +02:00
Ville Skyttä
855edbfdb7 wget does use filenames (e.g. with -O) (Alioth: #312458). 2010-04-13 18:41:17 +03:00
Ville Skyttä
c89152b6b2 Drop unnecessary $TESTDIR from java -cp test. 2010-04-12 20:39:07 +03:00
Ville Skyttä
79b998442e Run tests based on installed completions, not just command availability.
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2010-February/002556.html
2010-04-12 20:35:16 +03:00
Ville Skyttä
d05634409c Make iconv encoding completion more portable. 2010-04-11 16:50:10 +03:00
Ville Skyttä
a44c07fb9e Add more iconv option completions, use _split_longopt. 2010-04-11 16:50:10 +03:00
Freddy Vulto
6a6cab1179 Fixed comment now that we support bash >= 3.2.0 2010-04-10 12:27:36 +02:00
Freddy Vulto
50824f909d Move _filedir fix to _quote_readline_by_ref. 2010-04-10 12:22:19 +02:00
Freddy Vulto
3d4941fa96 (testsuite) Add test case for _filedir with directory containing multibyte character.
See also: http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01942.html
2010-04-10 12:13:33 +02:00
Guillaume Rousse
c953606fd2 extend previous fix for directory completion too 2010-04-06 21:30:07 +02:00
Guillaume Rousse
5a29589fca fix _filedir completion for path with non-ascii chars, by evaluating the result of _quote_readline_by_ref 2010-04-03 21:42:13 +02:00
Guillaume Rousse
35c795bdbb ensure offset is computed correctly in multibytes locales 2010-04-03 19:10:13 +02:00
Ville Skyttä
dda8896d0c cdiff can show compressed diffs. 2010-04-02 09:37:39 +03:00
Ville Skyttä
f48ca28b99 Improve/compact ungzip and gunzip globs. 2010-03-30 22:15:20 +03:00
Ville Skyttä
ac7ed92f52 Add *.taz support for gzip/gunzip. 2010-03-30 22:11:24 +03:00
Ville Skyttä
b8267d131e Add *.Z support to man completion. 2010-03-30 22:04:07 +03:00
Ville Skyttä
d6068483d2 Add *.xz support to man completion. 2010-03-30 22:02:30 +03:00
Ville Skyttä
6e373da8e1 Clean up cfagent option completions. 2010-03-30 20:49:43 +03:00
Ville Skyttä
81d3c689a5 Speed up process name completion. 2010-03-30 20:49:43 +03:00
Ville Skyttä
27952228d7 Clean up cryptsetup option completions. 2010-03-30 20:49:35 +03:00
Ville Skyttä
bb16f00030 Get rid of one (not-prefixed-with-'command') grep. 2010-03-30 20:23:17 +03:00
Ville Skyttä
0271e15695 Do basic text editor completion with xemacs, sxemacs, kate, and kwrite. 2010-03-24 00:33:42 +02:00
Ville Skyttä
5064875616 Remove duplicate basic pattern for emacs only, use same as other text editors. 2010-03-24 00:30:41 +02:00
Ville Skyttä
15cc44a67b Don't install mock completion by default, it's in upstream mock > 1.1.0. 2010-03-20 22:40:00 +02:00
Guillaume Rousse
288cd1552d add cryptsetup completion 2010-03-18 23:29:23 +01:00
Guillaume Rousse
0098435c71 rename _get_command to _get_first_arg, and move it to main file, as it is a generic utility function 2010-03-14 19:27:40 +01:00
guillaume
b68a572119 initial import 2010-03-14 19:23:30 +01:00
Freddy Vulto
f894f07500 Fix comment 2010-03-14 11:21:56 +01:00
Freddy Vulto
bdca37a7bf Improve _get_comp_words_by_ref to return words' and cword'
Usage: _get_comp_words_by_ref [OPTIONS] [VARNAMES]
Available VARNAMES:
    cur         Return cur within varname "cur"
    prev        Return prev within varname "prev"
    words       Return words within varname "words"
    cword       Return cword within varname "cword"

Available OPTIONS:
    -n EXCLUDE  Characters out of $COMP_WORDBREAKS which should NOT be
                considered word breaks. This is useful for things like scp
                where we want to return host:path and not only path, so we
                would pass the colon (:) as -n option in this case.  Bash-3
                doesn't do word splitting, so this ensures we get the same
                word on both bash-3 and bash-4.
    -c VARNAME  Return cur within specified VARNAME
    -p VARNAME  Return prev within specified VARNAME
    -w VARNAME  Return words within specified VARNAME
    -i VARNAME  Return words within specified VARNAME

Example usage:

   $ _get_comp_words_by_ref -n : cur prev
2010-03-14 11:07:13 +01:00