David Paleino
4b289de690
* contrib/dpkg fixed -W and --show completing on .?(u)deb's (Debian: #552109 )
2009-10-23 16:43:31 +02:00
Ville Skyttä
885e6dd6b6
Drop internal uses of $default, $filenames and friends.
...
Definitions are still present though, tentatively scheduled for
removal as of 2.0.
2009-10-22 12:04:29 +03:00
Ville Skyttä
6862bb45c1
bash < 3 support removal step 1: drop unneeded conditional sections.
2009-10-22 11:15:27 +03:00
Ville Skyttä
cdc0bcc3c1
Make wtf bash < 4 compatible, fix -f handling.
2009-10-21 20:27:58 +03:00
Ville Skyttä
474896f2c8
Speed up installed rpm package completion on SUSE (Alioth: #312021 ).
2009-10-20 22:47:31 +03:00
Ville Skyttä
c4c6eb7132
Add some cvs global option argument completions.
2009-10-20 22:08:18 +03:00
Ville Skyttä
3690fb5171
Fix indentation.
2009-10-20 21:51:47 +03:00
Ville Skyttä
d2ce9f59bd
Add bunch of cvs command option completions.
2009-10-20 21:50:21 +03:00
Ville Skyttä
992226b134
Fix annotate mode detection.
2009-10-20 21:31:54 +03:00
Ville Skyttä
2a326a015c
Get cvs command options from cvs --help $command.
2009-10-20 21:17:28 +03:00
Ville Skyttä
1233ebfecd
Parse global cvs options from --help-options.
2009-10-20 20:58:27 +03:00
Ville Skyttä
881bd63774
Tolerate tabs in cvs --help-commands output too.
2009-10-20 20:57:18 +03:00
Ville Skyttä
44395aa45f
Rename repomanage completion to _yum-utils, don't install it by default.
...
An updated version of it (and some more completions) will be included
in upstream yum-utils > 1.1.23.
2009-10-20 19:41:11 +03:00
Ville Skyttä
a874b65b0e
Add lftp option completion, simplify bookmark parsing, complete on hostnames.
2009-10-20 09:38:33 +03:00
Ville Skyttä
1065f46e19
Add lftpget completion.
2009-10-20 09:32:59 +03:00
Ville Skyttä
70fd9ca2df
Add cvs --help command completion, get commands from --help-commands,
...
offer the few long options there are rather than corresponding short
ones.
2009-10-20 09:29:36 +03:00
Ville Skyttä
52c8a81b31
Fix indentation.
2009-10-20 00:55:46 +03:00
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