322 Commits

Author SHA1 Message Date
Ville Skyttä
300cf4be3b Drop unnecessary short option completion choices. 2009-10-20 00:54:36 +03:00
Ville Skyttä
45511c54fc More mysqladmin options and option argument handling. 2009-10-20 00:41:46 +03:00
Ville Skyttä
d3729ad0b3 Complete mysqladmin long options, add bunch of missing ones. 2009-10-20 00:30:09 +03:00
Ville Skyttä
ba12c8102c Add more mysqladmin command completions. 2009-10-20 00:25:38 +03:00
Ville Skyttä
e3184ff193 Fix indentation. 2009-10-20 00:18:30 +03:00
Ville Skyttä
8ef975797d Use _split_longopt in mdadm. 2009-10-20 00:12:49 +03:00
Ville Skyttä
16c00d6d87 Add wtf completion, based on work by Raphaël Droz. 2009-10-19 23:18:57 +03:00
Ville Skyttä
30262cc015 Indentation fix. 2009-10-19 22:34:46 +03:00
Ville Skyttä
0e11c05a49 Add --help/--version handling. 2009-10-19 21:39:55 +03:00
Ville Skyttä
7c192589ae Improve gkrellm completion. 2009-10-19 21:33:09 +03:00
Ville Skyttä
0b970c7477 Indentation fixes. 2009-10-19 21:24:25 +03:00
Ville Skyttä
e63121c2ff More indentation fixes. 2009-10-18 22:14:00 +03:00
Ville Skyttä
2c83f0ff43 Remove many unnecessary short option completions where long ones exist. 2009-10-18 22:12:37 +03:00
Ville Skyttä
c11af089d6 Fix indentation, drop duplicate yum-arch. 2009-10-18 22:08:46 +03:00
Ville Skyttä
9636355bbe Fix indentation. 2009-10-18 21:54:54 +03:00
Ville Skyttä
5df89c7cff Fix indentation. 2009-10-18 21:38:41 +03:00
David Paleino
ffe704c24b contrib/munin-node fixed (Debian: #550943) 2009-10-16 19:46:51 +02:00
David Paleino
5ca835bfac Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2009-10-16 19:43:28 +02:00
David Paleino
dbb3510524 Fixed "freq" and "rate" completion for iwconfig
Should be tested on bash < 4; on bash4 it gave:

    awk: /^[[:space:]]*Channel/ {print $4\"G\"}
    awk:                                 ^ backslash not last character on line

  (similarly for "rate")
2009-10-12 13:02:52 +02:00
Ville Skyttä
b2d7d98eeb Apply pine completion to alpine too. 2009-10-11 22:16:35 +03:00
Ville Skyttä
e2c1f4117f Apply cardctl completion to pccardctl too. 2009-10-11 21:17:29 +03:00
Ville Skyttä
419bcb44aa bluez-utils was merged to bluez as of 4.x, rename completion accordingly. 2009-10-11 21:10:07 +03:00
Guillaume Rousse
463568bc48 pattern based file completions are defined in main file 2009-10-04 23:02:55 +02:00
Guillaume Rousse
506e1cb3eb new indentation policy 2009-10-04 19:42:50 +02:00
Ville Skyttä
369980bf93 Tell *Emacs to indent comments (sh-indent-comment: t).
Also move indentation settings to end of files and expand *Emacs ones to
local variables block to avoid overflowing 80 char lines.
2009-10-01 20:54:51 +03:00
Ville Skyttä
a7fb763fdd Remove unused ver variable, thanks to Elan Ruusamäe. 2009-09-29 20:41:14 +03:00
Ville Skyttä
9322da7992 Add more common options to rpm option completions. 2009-09-29 20:37:42 +03:00
Freddy Vulto
e6a18ac7cf Quoted $cur to prevent globbing
See Alioth #311614
2009-09-28 20:21:54 +02:00
Ville Skyttä
1453625e50 Prevent rpm --define/-D completions from falling through. 2009-09-27 10:18:43 +03:00
David Paleino
fa65e312ea Remove --with-suggests and --without-suggests from aptitude completion 2009-09-26 16:51:39 +02:00
Freddy Vulto
0e9f5a3850 Fixed contrib/ri
Too much lines were deleted accidentally at the previous commit.
2009-09-25 09:57:37 +02:00
Freddy Vulto
cfcf9fae8f Quote unquoted $cur to prevent globbing.
Closes Alioth #311614

Globbing might occur if $cur contains one of these globbing characters: * ? [ ]

The bug becomes apparent:

On Cygwin if the glob-string contains backslashes as well, causing a warning (Cygwin >= 1.7):

    MS-DOS style path detected: ...
    Preferred POSIX equivalent is: ...
    CYGWIN environment variable option "nodosfilewarning" turns off this warning.
    Consult the user's guide for more details about POSIX paths:
      http://cygwin.com/cygwin-ug-net/using.html#using-pathnames

On Linux, using strace, you can see bash-completion doing an unnecessary `open' system call.

Steps to reproduce on Linux using `strace':

Environment:  Linux, bash-completion-1.0

1.  Start bash with bash-completion loaded and find out PID ($$):

    $ echo $$
    MYPID

2.  In a second bash shell, `strace' the above PID:

    $ strace -e trace=open -f -o strace.log -p MYPID

3.  Within the first bash shell, type:

    $ cur="?"; _kernel_versions

4.  In the second bash shell, type ^C to quick `strace'.

5.  Check `strace.log', here you can see bash accessing
    something it shouldn't:

    ...
    open(".", O_RDONLY|O_NONBLOCK|O_LARGEFILE|O_DIRECTORY|O_CLOEXEC) = 3
    ...

6.  The above call to `open' disappears if $cur in _kernel_versions gets
    quoted, and you repeat the steps above:

    _kernel_versions()
    {
        COMPREPLY=( $( compgen -W '$( command ls /lib/modules )' -- "$cur" ) )
    }
2009-09-25 09:36:29 +02:00
Freddy Vulto
f871fe4101 Fix dd to not break COMP_CWORDS on =
This fixes dd on bash-4 where COMP_CWORDS are broken on = as well.
2009-09-24 21:00:31 +02:00
David Paleino
5cd7272447 Correctly re-indent dd completion 2009-09-24 18:00:43 +02:00
Ville Skyttä
7e3c9af115 Support .xz suffix in info page completions. 2009-09-21 00:47:03 +03:00
Guillaume Rousse
f5b6261826 add rfkill completion 2009-09-20 22:12:01 +02:00
David Paleino
b5e06b0ab9 Added --no-generate to "apt-cache pkgnames" calls (Debian: #547550)
From apt-cache(1):

       -g, --generate
           Perform automatic package cache regeneration, rather than use the
           cache as it is. This is the default; to turn it off, use
           --no-generate. Configuration Item: APT::Cache::Generate.

  Should make calls to apt-cache faster.
2009-09-20 19:45:27 +02:00
David Paleino
679a87d91b Revert "Added completion for lintian/lintian-info"
This reverts commit c200e468d61b88bcf4d14253daf42c066929bfa9.

Filing the completion to the proper package, don't keep it in
upstream's bash-completion
2009-09-19 00:53:24 +02:00
David Paleino
c200e468d6 Added completion for lintian/lintian-info 2009-09-18 23:59:41 +02:00
David Paleino
7bc1813148 Revert "Support "man cmd subcmd" completion in contrib/man (Debian: #545411)"
This reverts commit 584bc520dfbc0e6a7e949b885bb9b949f99a1ff9.

This commit broke "general" man completion, trying to give "pages"
(from man-pages(7)) after $ man |. This would've been ok only if
$ man man | (man man pages indeed works). Trying to look for a fix :)
2009-09-17 18:25:25 +02:00
David Paleino
584bc520df Support "man cmd subcmd" completion in contrib/man (Debian: #545411) 2009-09-17 18:06:24 +02:00
David Paleino
0b35bdb5af Fixed obvious brokenness (typos) in contrib/mdadm 2009-09-16 20:33:53 +02:00
David Paleino
796a7f4e37 Added sshfs completion (shares the same as scp) (Debian: #545978) 2009-09-16 14:23:22 +02:00
David Paleino
7e379590b2 Improve qemu completion (Debian: #534901) 2009-09-16 12:53:23 +02:00
David Paleino
86d6d20cb0 Added m4v completion to mplayer (Debian: #504213) 2009-09-16 12:16:56 +02:00
Guillaume Rousse
3e1508e51e initial import 2009-09-14 21:48:44 +02:00
Guillaume Rousse
a1ae571cea initial import 2009-09-14 21:48:03 +02:00
Guillaume Rousse
c4b81f782d Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2009-09-14 21:36:44 +02:00
Guillaume Rousse
6c62b8fb32 initial import 2009-09-14 21:32:06 +02:00
Freddy Vulto
5999df7fea Merge branch 'master' into fvu 2009-09-13 13:32:14 +02:00