2193 Commits

Author SHA1 Message Date
Ville Skyttä
bb16f00030 Get rid of one (not-prefixed-with-'command') grep. 2010-03-30 20:23:17 +03:00
Ville Skyttä
0271e15695 Do basic text editor completion with xemacs, sxemacs, kate, and kwrite. 2010-03-24 00:33:42 +02:00
Ville Skyttä
5064875616 Remove duplicate basic pattern for emacs only, use same as other text editors. 2010-03-24 00:30:41 +02:00
Ville Skyttä
15cc44a67b Don't install mock completion by default, it's in upstream mock > 1.1.0. 2010-03-20 22:40:00 +02:00
Guillaume Rousse
288cd1552d add cryptsetup completion 2010-03-18 23:29:23 +01:00
Guillaume Rousse
0098435c71 rename _get_command to _get_first_arg, and move it to main file, as it is a generic utility function 2010-03-14 19:27:40 +01:00
guillaume
b68a572119 initial import 2010-03-14 19:23:30 +01:00
Freddy Vulto
86ce86cb34 (testsuite) Add empty fixture directory 2010-03-13 09:10:31 +01:00
Ville Skyttä
acfa7eef3b Simplify wine extension glob. 2010-03-12 18:16:48 +02:00
Austin English
f66e87ffb7 Make lookup of wine file completions case insensitive. 2010-03-12 18:14:57 +02:00
Freddy Vulto
caaf58859a Undo commit 00560a88 ("_filedir: bash > 4 has the same behaviour
regardless of $cur beginning with ' or not"), because this is failing
tests:

    FAIL: completing f a\'b/ should return i
    FAIL: completing f a\"b/ should return i
    FAIL: f a\$b/ should show completions
    FAIL: f a\\b/ should show completions
    FAIL: completing f2 a\'b/ should return i
    FAIL: completing f2 a\"b/ should return i
    FAIL: f2 a\$b/ should show completions
    FAIL: f2 a\\b/ should show completions

- Fix _filedir to check for availability of COMP_WORDS (_filedir runs from
  within a completion instead of the command line) when doing a `complete -p
  ${COMP_WORDS[0]'
- Fix _filedir usage comment
- Enhanced _filedir tests
- Added _filedir test "completing with filter '.e1' should show completions"
2010-03-12 13:41:53 +01:00
David Paleino
4a2a236531 Revert "Added .ogv completion to mplayer (Debian: #573001)"
This reverts commit f24dbe8dd45cba63c6acf89fa8a300b1eae56567.
2010-03-08 18:32:40 +01:00
David Paleino
f24dbe8dd4 Added .ogv completion to mplayer (Debian: #573001) 2010-03-08 12:41:34 +01:00
David Paleino
8755f716fc Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion 2010-03-08 12:38:33 +01:00
Michele Ballabio
fca102412e Add *.t[bl]z support for pkgtools
pkgtools also supports tbz (bzip2) and tlz (lzma) compression
formats since april 2009.
2010-03-07 21:03:47 +02:00
Ville Skyttä
314cc0f13a Drop support for bash < 3.2. 2010-03-06 14:24:57 +02:00
Ville Skyttä
bc6f14445f Do basic diff/patch completion with cdiff and kompare. 2010-03-06 14:05:41 +02:00
Neville Gao
4632210154 Fix mount completion error "bash: [: too many arguments" (Alioth #312381). 2010-03-04 22:09:35 +02:00
Ville Skyttä
cf5e514efb Add *.txz support (Alioth: #312384). 2010-03-04 20:26:49 +02:00
Ville Skyttä
1b336660d7 Add/fix implicit xz decompress support (Alioth: #312383). 2010-03-04 20:24:06 +02:00
Crestez Dan Leonard
0f49bb1e3c (testsuite) Add a --timeout option to test/run to override the default expect timeout. 2010-02-21 05:44:39 +02:00
Crestez Dan Leonard
f9177e5286 (testsuite) Add a --debug-xtrace option to run.
Cleanup test/run scripts and add a --debug-xtrace option.
2010-02-20 22:54:13 +02:00
Ville Skyttä
7ef06fb2df Add break, lock, say, and state to perldoc -f completions. 2010-02-17 20:03:21 +02:00
Ville Skyttä
d7d8b2b206 Include *.pl, *.pm, and *.pod files in perldoc completions. 2010-02-17 19:57:32 +02:00
Ville Skyttä
59977e4bf8 Sync before unsetting var to avoid error message. 2010-02-15 18:56:09 +02:00
Crestez Dan Leonard
f294219990 Merge branch 'mount-fix'
Fix mount handling of escapes (Alioth: #311410, Launchpad: #219971)

Conflicts:
	CHANGES
2010-02-15 15:36:58 +02:00
Crestez Dan Leonard
91f7e8274e (mount) Handle escapes in LABEL= lines from fstab. 2010-02-15 15:33:10 +02:00
Crestez Dan Leonard
6d44b8033a (umount) Parse /proc/mounts instead of mount output on Linux
This makes it possible to easily unmount paths with spaces. Those are common
when automatically mounting usb devices.
2010-02-15 14:20:37 +02:00
Ville Skyttä
72a8cb5b49 Add -H, -L, and -P to chown and chgrp option completions with -R/--recursive. 2010-02-12 17:52:56 +02:00
Freddy Vulto
99e550c3a8 (testsuite) fix indent/comment sync_after_int 2010-02-11 23:12:04 +01:00
Freddy Vulto
9f107370c4 (testsuite) Added `sleep .1' after sending QUIT/INT to bash
See also: http://lists.alioth.debian.org/pipermail/bash-completion-devel/2010-February/002566.html
2010-02-11 23:09:46 +01:00
Crestez Dan Leonard
ebdd9cefdc Merge branch 'space-fix': Fix tests when BASH_COMPLETION or TESTDIR contain
spaces.

Conflicts:
	CHANGES
2010-02-09 15:45:40 +02:00
Crestez Dan Leonard
4375c4b94e (mount) Split __linux_fstab_unescape function. Deal with \ at the end of strings. 2010-02-09 15:28:28 +02:00
Crestez Dan Leonard
2f61acd068 (mount) Make mount work properly with ' in fstab 2010-02-09 15:28:28 +02:00
Crestez Dan Leonard
c0b77a03f5 (mount) Make it clear that $' strings are not supported 2010-02-09 15:28:28 +02:00
Crestez Dan Leonard
6e0dc07ee2 (mount) Cleanup mount tests and test-fstab; fix obvious errors. 2010-02-09 15:28:13 +02:00
Crestez Dan Leonard
1c4b461882 (mount) Fix leaking fs_* vars to the environment. Explicitly save/restore IFS to be posix conformant. 2010-02-09 15:18:19 +02:00
David Paleino
2491104bac contrib/dpkg: update completion to current API 2010-02-09 11:09:04 +01:00
David Paleino
91a8ed2c1d remove trailing whitespace 2010-02-09 11:08:57 +01:00
David Paleino
00560a88b4 _filedir: bash > 4 has the same behaviour regardless of $cur beginning with ' or not
This can be triggered when $cur is actually empty, like, for example, when _filedir
  is manually launched from the command line:

    $ _filedir in
    $ echo ${COMPREPLY[@]}
    test doc .git contrib

  i.e. it's only showing the directories, not showing the files we're looking for.
  After this commit:

    $ . bash_completion
    $ _filedir in
    $ echo ${COMPREPLY[@]}
    test doc .git contrib bash_completion.sh.in Makefile.in
    $

  Which is the expected behaviour.
2010-02-09 11:07:55 +01:00
Ildar Mulyukov
6b30acc9ac bind *.ltx files to LaTeX family of programs
according to user request https://bugzilla.altlinux.org/show_bug.cgi?id=22443
2010-02-08 22:14:15 +02:00
Freddy Vulto
2cd91420d2 Merge branch 'fvu' 2010-02-07 15:21:44 +01:00
Freddy Vulto
b529cee550 Added _get_comp_words_by_ref()
This solves the following problems:
- now one function call suffices instead of two (_get_cword; _get_pword) if
  subsequent words need to be retrieved.  Also more than two words can be
  retrieved at once, e.g.: _get_comp_words_by_ref cur prev prev2 prev3
  Also this prevents passing of `wordbreakchars' to differ in calls to
  `_get_cword' and `_get_pword', e.g.: _get_comp_words_by_ref -n : cur prev
- passing by reference, no subshell call necessary anymore
- _get_pword now also takes into account the cursor position

Added testsuite proc `assert_no_output()'

Word of caution:

The passing-arguments-by-ref system in bash doesn't work if the new variable is
also declared local.  For example:

    t() {
        local a
        # ...
        eval $1=b
    }
    a=c; t a; echo $a  # Outputs "c", should be "b"
                       # Variable "a" is 'forbidden'

To make name collissions like this less likely to happen, but make the real
function still use readable variables, I've wrapped the `*_by_ref'
functions within an additional layer using variables prefixed with double
underscores (__).  For example:

    _t() {
        # Readable variables can still be used here
        local a
        # ...
        eval $1=b
    }
    t() {
        local __a
        _t __a
        eval $1=\$__a
    }
    a=c; t a; echo $a  # Outputs "b"
                       # Variable "__a" is 'forbidden'

Now only more obfuscated variables (starting with double prefix (__)) are
forbidden to use.
2010-02-07 15:18:58 +01:00
Crestez Dan Leonard
c72e20b42f Merge branch 'find-unique-completion-pair' 2010-02-07 01:09:17 +02:00
Ville Skyttä
6810e55645 (testsuite) Fix chown basic user completion test on systems with lots of users. 2010-02-05 22:44:04 +02:00
Ville Skyttä
35ebc8aec8 (testsuite) Add lftp hostname completion testing fixture. 2010-02-05 22:19:34 +02:00
Ville Skyttä
44f7ea3c5b Line length: 72 -> 79 as discussed on list. 2010-02-05 21:48:47 +02:00
Freddy Vulto
dc4d28bc11 (testsuite) mv fixture1 fixtures/shared/default 2010-02-05 15:16:19 +01:00
Freddy Vulto
c70c1ecb31 (testsuite) Added helper functions
- assert_source_completions()
- is_bash_completion_installed_for()

This allows for cleaner invocation of tests in `lib/completions/'.  For
example, `completion/perldoc.exp' now just contains:

    assert_source_completions perldoc

Skeleton test files for a command can be generated with:

    $ ./generate <command>
2010-02-05 14:35:45 +01:00
Freddy Vulto
8aca9ab62d (doc) Add reference to Tcl Style Guide. 2010-02-05 11:39:23 +01:00