1394 Commits

Author SHA1 Message Date
Ville Skyttä
1da64f602a More known hosts IPv6 completion fixes, thanks to Yoshinori KUNIGA.
https://bugzilla.redhat.com/show_bug.cgi?id=630658#c4
2010-10-04 21:31:03 +03:00
Ville Skyttä
3d8efed618 Fixes to completions for filenames containing tabs (RedHat: #629518). 2010-10-04 20:49:17 +03:00
Ville Skyttä
66e35aa4a1 Use awk sub instead of gsub where appropriate. 2010-09-28 18:29:26 +03:00
Ville Skyttä
9341a1131c Fix known hosts completion for IPv6 addresses whose last 16 bits are digits (Alioth: #312695, RedHat: #630658). 2010-09-28 18:24:35 +03:00
Ville Skyttä
7ea7d7b268 Simplify filename completions per new _filedir(_xspec) uppercasing behavior. 2010-09-19 12:29:29 +03:00
Ville Skyttä
c183a585b2 Match uppercased versions of _filedir and _filedir_xspec arguments too.
This provides a bit of case insensivity to file extension matching,
allowing for example _filedir foo to match both *.foo and *.FOO.  Note
that this is not real case insensivity; mixed case extensions like
*.FOO.gz are not matched by _filedir foo.gz so those need to be
handled like before this change.
2010-09-19 12:12:06 +03:00
Ville Skyttä
8e23895fe5 Avoid stderr output from compopt when invoking _filedir directly.
The _filedir unit test currently does this, causing (harmless) error output.
2010-09-19 11:33:52 +03:00
Ville Skyttä
d2a551fad4 Combine identical xdvi and kdvi completions. 2010-09-18 20:51:51 +03:00
Ville Skyttä
0f426b0774 Drop bad kompare filename completion (Alioth: #312708). 2010-09-13 21:25:21 +03:00
Guillaume Rousse
ff6172097d symlinks are automatically dereferenced for -f test, so don't use -h test 2010-09-12 16:38:59 +02:00
Ville Skyttä
fa04cb8114 Add *.part to mplayer and xine-based player completions (Alioth: #312657). 2010-08-20 14:09:28 +03:00
Freddy Vulto
e846d84ed1 Fix _filedir to redirect only stderr 2010-08-20 11:28:19 +02:00
Freddy Vulto
b867bcd64f Fix _filedir error message on bash-3
In case of `sudo cmd', _filedir might be triggered for a cmd not having a
complete command, hence `complete -p cmd' could yield an error. (Alioth
2010-08-18 23:01:26 +02:00
Guillaume Rousse
9b97b40c4a don't source Makefiles when run from test suite 2010-08-16 21:17:51 +02:00
Ville Skyttä
ff7c17e599 Trivial cleanups. 2010-07-01 20:21:35 +03:00
Freddy Vulto
66d3b63915 Speed up `compopt' availability detection.
Used `type compopt' instead of `compopt' to detect availability of
compopt because (at least on Ubuntu) a python-command-not-found handler
is started when issuing a non-existing command, thus resulting in
considerable slower completions on systems without compopt (bash < 4.0).
2010-06-30 23:40:13 +02:00
Freddy Vulto
ccbf141e13 Fix tilde (~) completion with _filedir
This fixes tilde completion when doing for instance `ls ~<TAB>'.  See
also: Alioth #312613.

Added _tilde() helper function.

Contrary to _expand() and __expand_tilde_by_ref(), _tilde() also leaves the
tilde (~) intact.  Replacement of the tilde has been a complaint in other
bugreports, especially since plain bash completion (without bash-completion
installed) doesn't expand the tilde when doing a `ls ~<TAB>'.

To run the tests:

    ./run completion/ls.exp
    ./run unit/_tilde.exp
2010-06-30 23:28:31 +02:00
Ville Skyttä
6571c6685c Add sqlite3 option completions, include *.db in filename ones (Alioth: 312605). 2010-06-29 19:30:32 +03:00
Ville Skyttä
48027cfbe1 Add lr(un)zip completion. 2010-06-21 23:48:18 +03:00
Ville Skyttä
8346a428fc Add "short" tarball extensions to unxz, unlzma etc completions. 2010-06-21 23:32:22 +03:00
Freddy Vulto
a2fcc654e8 Refactored _filedir code to _quote_readline_by_ref
See also: http://www.mail-archive.com/bash-completion-devel@lists.alioth.debian.org/msg01944.html
2010-06-18 18:28:54 +02:00
Freddy Vulto
94372b2aa6 Merge branch 'use-_get_comp_words_by_ref' 2010-06-10 23:51:30 +02:00
Freddy Vulto
0118ccb05a Remove verbose options from `_upvars'. 2010-06-10 00:03:07 +02:00
Freddy Vulto
a8dd58cfa9 Added _upvars' and _upvar'.
These helper methods aid in passing variables by reference.
2010-06-09 22:37:02 +02:00
Ville Skyttä
cdbfd8e224 Split ifup and ifdown completions into contrib/ifupdown. 2010-06-09 22:53:43 +03:00
Ville Skyttä
887361302b Split ipsec completion into contrib/ipsec. 2010-06-09 22:50:33 +03:00
Ville Skyttä
3f1f6120d7 Split killall, pkill, pgrep and related completions into contrib/procps. 2010-06-09 22:47:42 +03:00
Ville Skyttä
77af9f50d3 Split kill, look, and renice completions into contrib/util-linux. 2010-06-09 22:41:01 +03:00
Ville Skyttä
bf0ec3ce0e Split chown, chgrp, and id completions into contrib/coreutils. 2010-06-09 22:33:25 +03:00
Ville Skyttä
6068efc01f Split service completion into contrib/service. 2010-06-09 22:19:05 +03:00
Ville Skyttä
c6697f91e3 Add *.s3db and *.sdb completions for sqlite3. 2010-06-07 00:09:44 +03:00
Peter Collingbourne
ce664f47f1 It is common to name sqlite3 databases as *.sqlite3 at least in the Ruby world 2010-06-07 00:06:31 +03:00
Ville Skyttä
eded5995a2 Complete modplug123 on same files as modplugplay. 2010-06-06 22:30:38 +03:00
Ville Skyttä
9566f5994a Add *.oxt (OpenOffice.org extension) to unzip/zipinfo completions. 2010-06-06 21:18:57 +03:00
Freddy Vulto
876c8e26c1 Prevent root PATH expansion proliferating
The PATH expansion done in `_root_command()':

    PATH=$PATH:/sbin:/usr/sbin:/usr/local/sbin _command $1 $2 $3

stayed effective with bash >= 4.1.4 running in posix mode, causing PATH to grow
ever larger when doing sudo completions.  This is now fixed.

To run the automated test:

    ./run ./completion/sudo.exp

See also:
- http://www.mail-archive.com/bug-bash@gnu.org/msg06942.html
- bash patch: bash41-004
2010-05-26 22:57:08 +02:00
Ville Skyttä
80e33a1512 Make xine based players complete on *.tp and *.ts. 2010-05-23 09:46:56 +03:00
Ville Skyttä
6a9c8f1d9b Complete on *.fxm (JavaFX video) with xine based players and mplayer. 2010-05-18 23:54:22 +03:00
Ville Skyttä
5022808775 Fix MAC address completion. 2010-05-11 00:35:45 +03:00
Ville Skyttä
310eb69245 Add wol(1) completion.
May need a bit of work, see failing test case ("wol 00:").
2010-05-10 00:57:16 +03:00
Mark van Rossum
cb577d3dd2 Add basic lyx completion. 2010-05-09 21:28:27 +03:00
Ville Skyttä
14f2393024 Do meta-command completion for aoss and padsp. 2010-05-09 12:12:06 +03:00
Ville Skyttä
d73afeb1f4 Add FLAC files to xine based player completions. 2010-04-29 00:09:18 +03:00
Ville Skyttä
734cdcdc1e Split rmmod, insmod etc completion to contrib/module-init-tools. 2010-04-29 00:06:24 +03:00
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ä
e270eb18e3 Improve filesystem type completions. 2010-04-21 19:07:17 +03:00
Ville Skyttä
855edbfdb7 wget does use filenames (e.g. with -O) (Alioth: #312458). 2010-04-13 18:41:17 +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
Guillaume Rousse
c953606fd2 extend previous fix for directory completion too 2010-04-06 21:30:07 +02:00