summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* (testsuite) Don't and start of prompt pattern in sync_after_int.expect-fixesCrestez Dan Leonard2010-03-181-1/+5
|
* (testsuite) Make fast synchronisation optional and disabled by defaultCrestez Dan Leonard2010-03-182-20/+42
|
* Merge commit '0f49' into expect-fixesCrestez Dan Leonard2010-03-078-40/+111
|\
| * (testsuite) Add a --timeout option to test/run to override the default ↵Crestez Dan Leonard2010-02-213-0/+11
| | | | | | | | expect timeout.
| * (testsuite) Add a --debug-xtrace option to run.Crestez Dan Leonard2010-02-208-40/+100
| | | | | | | | Cleanup test/run scripts and add a --debug-xtrace option.
* | (testsuite) Sleepless sync_after_int, second attempt. Match a random string ↵Crestez Dan Leonard2010-02-261-11/+27
| | | | | | | | instead of ^C.
* | (testsuite) Replace sleep statements with explicit matching of ^C\r\n in ↵Crestez Dan Leonard2010-02-211-7/+10
| | | | | | | | sync_after_int
* | (testsuite) Remove $ from match_items regexps to tolerate arbitrary buffering.Crestez Dan Leonard2010-02-211-2/+2
|/
* Add break, lock, say, and state to perldoc -f completions.Ville Skyttä2010-02-171-4/+4
|
* Include *.pl, *.pm, and *.pod files in perldoc completions.Ville Skyttä2010-02-172-4/+5
|
* Sync before unsetting var to avoid error message.Ville Skyttä2010-02-151-0/+1
|
* Merge branch 'mount-fix'Crestez Dan Leonard2010-02-154-8/+188
|\ | | | | | | | | | | | | Fix mount handling of escapes (Alioth: #311410, Launchpad: #219971) Conflicts: CHANGES
| * (mount) Handle escapes in LABEL= lines from fstab.Crestez Dan Leonard2010-02-152-9/+25
| |
| * (umount) Parse /proc/mounts instead of mount output on LinuxCrestez Dan Leonard2010-02-151-4/+10
| | | | | | | | | | This makes it possible to easily unmount paths with spaces. Those are common when automatically mounting usb devices.
| * (mount) Split __linux_fstab_unescape function. Deal with \ at the end of ↵Crestez Dan Leonard2010-02-092-2/+28
| | | | | | | | strings.
| * (mount) Make mount work properly with ' in fstabCrestez Dan Leonard2010-02-093-6/+15
| |
| * (mount) Make it clear that $' strings are not supportedCrestez Dan Leonard2010-02-092-15/+6
| |
| * (mount) Cleanup mount tests and test-fstab; fix obvious errors.Crestez Dan Leonard2010-02-092-6/+15
| |
| * (mount) Fix leaking fs_* vars to the environment. Explicitly save/restore ↵Crestez Dan Leonard2010-02-091-2/+8
| | | | | | | | IFS to be posix conformant.
| * _reply_compgen_array: Fix leaking to environmentCrestez Dan Leonard2010-02-041-1/+1
| |
| * (testsuite) mount.exp: Create a mount-line completion which reads from a ↵Crestez Dan Leonard2010-02-042-2/+68
| | | | | | | | file instead of global fstab.
| * Separate _linux_fstab functionCrestez Dan Leonard2010-02-041-9/+21
| |
| * Changes lineCrestez Dan Leonard2010-02-041-0/+1
| |
| * Initial implementation of _reply_compgen_arrayCrestez Dan Leonard2010-02-041-1/+39
| |
* | Add -H, -L, and -P to chown and chgrp option completions with -R/--recursive.Ville Skyttä2010-02-122-5/+14
| |
* | (testsuite) fix indent/comment sync_after_intFreddy Vulto2010-02-111-6/+6
| |
* | (testsuite) Added `sleep .1' after sending QUIT/INT to bashFreddy Vulto2010-02-111-0/+4
| | | | | | | | See also: http://lists.alioth.debian.org/pipermail/bash-completion-devel/2010-February/002566.html
* | Merge branch 'space-fix': Fix tests when BASH_COMPLETION or TESTDIR containCrestez Dan Leonard2010-02-099-19/+20
|\ \ | | | | | | | | | | | | | | | | | | spaces. Conflicts: CHANGES
| * | Fix nfs mount completion if the path to showmount contains a space.Crestez Dan Leonard2010-02-021-1/+1
| | |
| * | Fixed tests when BASH_COMPLETION or TESTDIR contain spaces.Crestez Dan Leonard2010-02-028-18/+19
| | |
* | | bind *.ltx files to LaTeX family of programsIldar Mulyukov2010-02-081-1/+1
| | | | | | | | | | | | according to user request https://bugzilla.altlinux.org/show_bug.cgi?id=22443
* | | Merge branch 'fvu'Freddy Vulto2010-02-073-11/+510
|\ \ \
| * | | Added _get_comp_words_by_ref()Freddy Vulto2010-02-073-11/+510
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* | | | Merge branch 'find-unique-completion-pair'Crestez Dan Leonard2010-02-074-20/+120
|\ \ \ \ | |/ / / |/| | |
| * | | Add changes entry for Alioth #312306Crestez Dan Leonard2010-02-041-0/+1
| | | |
| * | | Use find_unique_completion_pair in chown testCrestez Dan Leonard2010-02-031-20/+15
| | | |
| * | | Add a find_unique_completion_pair proc.Crestez Dan Leonard2010-02-032-0/+104
| |/ / | | | | | | | | | | | | Given a list of items this proc finds a (part, full) pair so that when completing from $part $full will be the only option.
* | | (testsuite) Fix chown basic user completion test on systems with lots of users.Ville Skyttä2010-02-051-1/+4
| | |
* | | (testsuite) Add lftp hostname completion testing fixture.Ville Skyttä2010-02-052-1/+6
| | |
* | | Line length: 72 -> 79 as discussed on list.Ville Skyttä2010-02-051-1/+1
| | |
* | | (testsuite) mv fixture1 fixtures/shared/defaultFreddy Vulto2010-02-0514-20/+19
| | |
* | | (testsuite) Added helper functionsFreddy Vulto2010-02-053-6/+37
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - 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>
* | | (doc) Add reference to Tcl Style Guide.Freddy Vulto2010-02-051-0/+5
| | |
* | | (testsuite) Updated documentationFreddy Vulto2010-02-051-0/+44
| | | | | | | | | | | | | | | Added explanation about the two-file system: `completion/*.exp calling completions in lib/completions/*.exp
* | | (testsuite) Fix ssh testFreddy Vulto2010-02-052-19/+8
| |/ |/| | | | | | | Fix ssh test "First argument shouldn't complete with commands" if one has hosts starting with "bas" in known hosts. (Alioth #312292)
* | docs: styleguide, establish line wrapping and $() instead of ``David Paleino2010-02-021-6/+17
|/
* (testsuite) Fix chown test "crash" if root user/group is N/A (Alioth: 312306).Leonard Crestez2010-02-011-4/+8
|
* (testsuite) Fix assert_bash_type perldoc > perlFreddy Vulto2010-01-311-1/+1
| | | | | | Make `assert_bash_type' reflect bash-side where `have perl' is checked, and not perldoc, to determine whether `perldoc' completion should be installed.
* (testsuite) Sync fmt test with other longopt only tests.Ville Skyttä2010-01-301-1/+3
|
* (testsuite) Don't fail long option tests if command has no long options.Ville Skyttä2010-01-3019-21/+59
| | | | | | | | Many basic commands do not have long options on non-GNU systems, mark such tests as unsupported (if the command doesn't respond to --help) instead of failing. Implemented with the new $failcmd parameter to assert_exec().