398 Commits

Author SHA1 Message Date
Ville Skyttä
ae9e140948 tcpdump: Use _parse_usage, add bunch of option completions and a basic test case. 2011-05-05 00:18:18 +03:00
Ville Skyttä
3334711726 _parse_usage: Deal with whitespace in brackets. 2011-05-05 00:06:58 +03:00
Ville Skyttä
db86b76eba fusermount: Use _parse_help, add basic test case. 2011-05-04 23:56:38 +03:00
Ville Skyttä
20a3d4d0bd rdesktop: Use _parse_help, add/improve option completions and basic test case. 2011-05-04 23:21:06 +03:00
Ville Skyttä
174d40ecff quota-tools: Use _parse_help, add bunch of option completions and basic test cases. 2011-05-04 22:50:06 +03:00
Ville Skyttä
997ecac0f0 samba: Use _parse_help, add bunch of option completions and basic test cases. 2011-05-04 22:47:05 +03:00
Ville Skyttä
21c5a0eb9d phing: Reuse ant completion for it, add basic test case. 2011-05-03 09:46:30 +03:00
Ville Skyttä
1126c831b8 testsuite: Don't define $BASH_COMPLETION here either. 2011-05-03 09:33:18 +03:00
David Paleino
00a6abb136 Also get rid of BASH_COMPLETION_DIR in the testsuite 2011-05-02 18:41:36 +02:00
Ville Skyttä
0a40e980cb testsuite: Add basic grpck, passwd, and pwck test cases. 2011-05-02 14:37:33 +03:00
Ville Skyttä
68f6f1c685 _parse_usage, _parse_help: Add _parse_usage, expand [no-] and [dont-?] as well in _parse_help. 2011-05-02 14:37:13 +03:00
Ville Skyttä
c875723bef Include trailing equals sign in options that take arguments that way.
This way it's clearer to users that an argument is expected.  It's
likely that this commit does not catch all such cases, but it should
do it for most of the affected commands I have installed.
2011-05-02 11:45:55 +03:00
Ville Skyttä
41ce815827 testsuite: Add some failing _get_comp_words_by_ref testcases when cursor is before first word. 2011-05-01 17:33:24 +03:00
Ville Skyttä
0448c765ba testsuite: Add test case for Debian: #622383.
The fix is in commit 4ad538ba1a0ccb483899b4eaa70cc604d2b7bf78.
2011-05-01 16:00:07 +03:00
Ville Skyttä
b202bc60f6 cppcheck: New completion. 2011-05-01 12:13:32 +03:00
Ville Skyttä
7fb4e3137d _parse_help: Don't treat tokens with more than two leading dashes as options. 2011-04-29 12:05:29 +03:00
Ville Skyttä
b6cdacf1f9 _parse_help: Expand --[no]foo to --foo and --nofoo. 2011-04-29 11:47:48 +03:00
Ville Skyttä
e2c57c5966 Convert many completions to use _parse_help() instead of hardcoded option lists. 2011-04-28 21:21:31 +03:00
Ville Skyttä
393ab1f650 testsuite: Add basic mii-diag and mii-tool test cases. 2011-04-28 21:17:50 +03:00
Ville Skyttä
fd2bd342e0 _parse_help: Fix --foo={bar,quux} handling. 2011-04-28 20:48:48 +03:00
Ville Skyttä
3998a70dd9 route: Don't leak local $opt. 2011-04-27 23:37:44 +03:00
Ville Skyttä
9d810be86b _parse_help: Make work with pipe separated options. 2011-04-27 23:22:03 +03:00
Ville Skyttä
fabbec105c testsuite: Add bunch of simple shadow util test cases. 2011-04-27 23:17:58 +03:00
Ville Skyttä
7b60fc6555 _parse_help: Re-fix --foo[=bar] handling. 2011-04-27 21:44:04 +03:00
Ville Skyttä
3a39ac6676 chsh: Use _allowed_users instead of plain compgen -u. 2011-04-27 18:40:16 +03:00
Ville Skyttä
5cd5993211 _parse_help: Change to output first long option, or first short if not found.
Makes things more consistent with the rest of our option offerings.
2011-04-27 18:36:52 +03:00
Ville Skyttä
976ba44825 Complete screen on commands (Alioth: #312164, RedHat: #547852). 2011-04-25 15:51:33 +03:00
Ville Skyttä
a87086b7d4 Turn off default compopt when completing dirs in _longopt().
Otherwise -o default kicks in in cases where we have no dir
completions and ends up completing files.
2011-04-24 19:54:50 +03:00
Ville Skyttä
ea90dc1a86 Use _split_longopt() in rsync. 2011-04-24 18:50:40 +03:00
Ville Skyttä
6589a0d61b Drop support for bash < 4.1, clean up no longer needed low hanging cruft. 2011-04-21 12:20:59 +03:00
Ville Skyttä
a47aff8481 Fix local variable leaks from bluez completions. 2011-04-17 13:44:06 +03:00
Ville Skyttä
1ffb918b4e Support tildes when recursively sourcing muttrc files (Debian: #615134). 2011-04-14 22:17:29 +03:00
Ville Skyttä
f0eac44ac9 (testsuite) Test java -classpath in addition to -cp. 2011-04-06 18:51:22 +03:00
Ville Skyttä
c691c6e998 Add CHANGES entry and test case for previous java completion change. 2011-04-06 18:49:06 +03:00
Ville Skyttä
ec25abac89 (testsuite) Make ri basic test case more likely to work.
Plain "ri " completion returns 3729 entries on my box which is way
more than fits into the expect buffer we have in effect.
2011-04-01 20:09:42 +03:00
Ville Skyttä
c398b1c56f (testsuite) Fix get_hosts option docs. 2011-03-29 23:27:51 +03:00
Freddy Vulto
68e9a8e6eb (testsuite) Add -unsorted option to _get_hosts()
_known_hosts_real tests were failing after commit 81794a9:

   FAIL: Hosts should be put in COMPREPLY
   FAIL: Hosts should have username prefix and colon suffix

This is because tcl's get_hosts() is now doing a unique sort, but bash
_known_hosts_real() IS returning duplicates relying on bash's compgen/complete
to remove the duplicates).  Fixed by calling _get_hosts -unsorted.
2011-03-27 23:12:14 +02:00
Freddy Vulto
7cd17ada11 Fix __reassemble_comp_words_by_ref() unquoted pattern removal
Commit 8227e76 was failing on these `chown' tests in bash-4.1:

    FAIL: Check preserve special chars in funky\ user:Debia<TAB>
    FAIL: Check preserve special chars in funky\.user:Debia<TAB>
    FAIL: Check preserve special chars in fu\ nky.user:Debia<TAB>
    FAIL: Check preserve special chars in f\ o\ o\.\bar:Debia<TAB>
    FAIL: Check preserve special chars in foo\_b\ a\.r\ :Debia<TAB>

because a removal pattern is expanded:

    $ a=\\b
    $ w=\\
    $ echo ${a#$w}    # Doesn't work
    \b
    $ echo ${a#"$w"}  # Ok
    b
2011-03-27 22:08:55 +02:00
Ville Skyttä
a73774c833 Fix regressions and further tweak previous java completion patch.
Fix inner class regression, adapt test suite, turn off nospace for
single class completions, protect -o nospace for bash < 4.
2011-03-24 20:45:16 +02:00
Freddy Vulto
8227e76e09 Improve __reassemble_comp_words_by_ref() (Alioth #313057)
Prohibit word creation of characters if they're excluded from
$COMP_WORDBREAKS.  For example, with ':' included in $COMP_WORDBREAKS,
'a b:' should split to 'b' and ':'.  With ':' excluded from
$COMP_WORDBREAKS, 'a b:' should split to 'b:', NOT 'b' and ':'.
2011-03-24 00:00:58 +01:00
Ville Skyttä
2c78ae3ea1 (testsuite) Add basic xzdec test case. 2011-03-21 19:46:13 +02:00
Ville Skyttä
a6354b8107 Add reptyr completion. 2011-03-12 12:04:02 +02:00
Ville Skyttä
a34a380410 (testsuite) Add basic puppet test case. 2011-02-26 15:58:20 +02:00
Ville Skyttä
ab66ae79c2 (testsuite) Add basic mdadm test case. 2011-02-26 15:47:02 +02:00
Ville Skyttä
6042cbe2f5 Split rpm and rpmbuild completions and improve them both.
The option sets are different, and rpm should not have been used to
build packages since rpm 4.0, and could not have been used for that
since rpm 4.1.
2011-02-10 23:51:26 +02:00
Ville Skyttä
f96e15428c (testsuite) Add basic gendiff test case. 2011-02-07 21:01:01 +02:00
Ville Skyttä
cb01d8ea54 Add javaws completion. 2011-02-06 15:15:20 +02:00
Ville Skyttä
81794a9dcf (testsuite) Avoid duplicates in get_hosts() return value. 2011-02-05 12:27:35 +02:00
Ville Skyttä
80312be9af (testsuite) Use get_hosts() in xhost tests. 2011-02-05 12:24:49 +02:00
Ville Skyttä
74128a73ce Add mktemp(1) completion. 2011-01-24 00:20:32 +02:00