459 Commits

Author SHA1 Message Date
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
Freddy Vulto
0e1e189f0b Fix leaking $muttcmd from mutt completion 2009-09-12 21:54:17 +02:00
Ville Skyttä
c31daf26ae Fix sbcl file/dirname completion (Debian: #545743). 2009-09-09 18:54:18 +03:00
Ville Skyttä
bb43fd63bf Split yum into _yum and yum-arch.
The plan is to move yum completion to yum upstream soon:
http://lists.baseurl.org/pipermail/yum-devel/2009-August/005777.html
2009-09-08 20:28:51 +03:00
Ville Skyttä
81458b0b9f Add yum --enable/disableplugin completions. 2009-09-08 20:20:48 +03:00
Ville Skyttä
47fb2d8f0e Revert "Improve sudo completion (Alioth: #311414)."
This reverts commit 11d4d978876ceb58eaec5dcfd82fae7b9699acfd.
Avoiding breaking completion for the sudo'd command isn't as
straightforward as I thought.
2009-09-05 00:26:48 +03:00
Ville Skyttä
11d4d97887 Improve sudo completion (Alioth: #311414). 2009-09-04 23:59:34 +03:00
Ville Skyttä
8770727a08 Add xz and compress support to rpmbuild -t*/--tarbuild completion. 2009-08-26 23:58:50 +03:00
Ville Skyttä
2bef79059c Add more tarball filename extensions to rpmbuild -t*/--tarbuild completion. 2009-08-26 23:55:28 +03: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