2117 Commits

Author SHA1 Message Date
Ildar Mulyukov
3438a5547a Add showmount completion (Alioth: #312285). 2010-01-26 23:33:24 +02:00
Ville Skyttä
6328b108a2 Fix NFS completion if path to showmount contains spaces (Alioth: #312285). 2010-01-26 23:17:48 +02:00
Ville Skyttä
dc8af65161 (testsuite) Use kern instead of fs to test sysctl completion.
FreeBSD does not have fs.* (has vfs.* instead).  Linux has kernel.*,
FreeBSD kern.*.
2010-01-24 23:58:46 +02:00
Ville Skyttä
c0d57b0bea (testsuite) Use File::Path instead of HTML::Parser to test perldoc.
HTML::Parser is not a "core" Perl module.
2010-01-24 23:36:01 +02:00
Ville Skyttä
5c6f45d5bb (testsuite) Add cvs roots completion test. 2010-01-24 23:35:32 +02:00
Ville Skyttä
89e52de0c5 (testsuite) Fix cvsps non-option completion test, add test for options.
"cvsps " completion failed when there was nothing in ~/.cvspass,
create a fixture for generic cvs use containing one, and use it.
2010-01-24 23:32:19 +02:00
Ville Skyttä
836adbbb2d Use == instead of =~ for simple suffix matching. 2010-01-24 22:11:52 +02:00
Ville Skyttä
359db46260 Don't bother looking for showmount if not doing NFS completion. 2010-01-24 19:43:16 +02:00
Ville Skyttä
5c5d804696 Update patch submission guidelines. 2010-01-24 19:36:10 +02:00
Leonard Crestez
c5951118e9 Fix NFS mounts completion (Alioth: #312285). 2010-01-24 19:27:15 +02:00
Ville Skyttä
258736a47b Look for showmount in $PATH first for easier mockability (Alioth: #312285). 2010-01-24 16:54:14 +02:00
Freddy Vulto
dde071d009 (testsuite) Fixed finger test
Added test suite function `get_known_hosts' which calls bash's `_known_hosts_real'.

Also the `finger' test "Tab should complete partial hostname" now skips hosts starting with character in COMP_WORDBREAKS leaving that to test for another test case.

See also: https://alioth.debian.org/tracker/?func=detail&atid=413095&aid=312220&group_id=100114
2010-01-24 10:32:41 +01:00
Ville Skyttä
e24fc84c8d Recognize long equivalents to -f and -C when looking for Makefile or dir option. 2010-01-19 23:14:46 +02:00
Ville Skyttä
7e03431ed7 (testsuite) Add basic tests for make. 2010-01-19 23:13:14 +02:00
Ville Skyttä
42b839e817 (testsuite) Enable cvs test. 2010-01-19 23:12:07 +02:00
Ville Skyttä
ab05989877 Do not alias sed to gsed (Alioth: #311393). 2010-01-19 21:59:08 +02:00
Ville Skyttä
7914d17468 Avoid use of POSIX character classes with awk for mawk compatibility. 2010-01-19 19:09:15 +02:00
Ville Skyttä
0b6baead5c Parse pigz options from pigz, not gzip, option completion improvements. 2010-01-18 20:32:03 +02:00
Ville Skyttä
08e746ea10 Add pbzip2, pbunzip2, and pbzcat completions. 2010-01-18 19:21:08 +02:00
Ville Skyttä
5d9e4f0c69 (testsuite) Enable gzip and bzip2 tests. 2010-01-18 19:20:40 +02:00
Ville Skyttä
825f3cce05 Use _parse_help in _bzip2(). 2010-01-18 19:11:28 +02:00
Ville Skyttä
43681ffac6 Make _parse_help() look at stderr too. 2010-01-18 19:09:02 +02:00
Ville Skyttä
df1a02baa5 Add pigz and unpigz completion. 2010-01-18 18:54:39 +02:00
Ville Skyttä
6f235980a8 sed portability fixes (avoid '\|'). 2010-01-18 18:53:41 +02:00
Ville Skyttä
556d1304d0 (testsuite) Add check for awk with POSIX character classes. 2010-01-17 15:36:01 +02:00
Freddy Vulto
2f78769d65 Removed awk regexp character classes.
On Debian/Ubuntu, awk (mawk 1.3.3 Nov 1996) is not supporting regexp
character classes.  See also:
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=314323

This was causing unit test `_known_hosts_real' to fail.  To run the
test:

    ./run unit/_known_hosts_real.exp
2010-01-17 10:41:13 +01:00
Ville Skyttä
942b916aa1 (testsuite) Don't fail dcop test if a DCOP server is not running. 2010-01-16 17:30:26 +02:00
Ville Skyttä
f8eec776e2 Weed out look completions not starting with current word.
Some versions of the default word list for look may return
non-completable entries (e.g. due to sort order mismatch -- dictionary
vs non-dictionary one, case sensitivity etc -- between sort order in
default word list and look's defaults).  As a side effect, fixes also
the test case when a lot of words are returned.
2010-01-16 17:30:02 +02:00
Ville Skyttä
f0c717b2be (testsuite) cd to correct top level dir first in runLint. 2010-01-16 15:54:28 +02:00
Ville Skyttä
ea0ee6a46b Fix installing simple xspec completions on systems with non-GNU sed.
There's no alternation functionality ('\|' or '|') in POSIX BRE.
2010-01-16 15:38:49 +02:00
Ville Skyttä
878c9dd5c9 Fix finding known hosts files from SSH configs on systems with non-GNU sed.
There's no alternation functionality ('\|' or '|') in POSIX BRE.
2010-01-16 15:22:49 +02:00
Ville Skyttä
8d6570670a (testsuite) It's not the empty alternative that's unportable with sed, it's \|. 2010-01-16 15:17:35 +02:00
Ville Skyttä
45698f2ae8 (testsuite) Add simple "lint" script for finding common issues.
Currently flags one potential awk issue in wireless-tools, but that
should be a non-issue because wireless-tools is a Linux thing.
2010-01-16 13:55:00 +02:00
Ville Skyttä
688f6a0ba6 Fix leak of 'i' from _yum(). 2010-01-16 13:44:03 +02:00
Ville Skyttä
6a7a838310 (testsuite) Check rpm -q completion against actual installed packages.
While at it, drop --eval completion test because I couldn't get it to
work with assert_complete (probably because I couldn't escape the
command properly here, see --eval|-E completion in contrib/rpm), and
no longer needed match_max fiddling.
2010-01-16 12:59:21 +02:00
Ville Skyttä
ef7f9dc89e (testsuite) Allow possibly leading whitespace in match_items() chunks > 1.
Thanks to Freddy Vulto.
2010-01-16 12:56:29 +02:00
Ville Skyttä
7a4e09a6ac Drop -m from --in etc completion getters.
http://lists.alioth.debian.org/pipermail/bash-completion-devel/2010-January/002453.html
2010-01-16 11:41:07 +02:00
Adrian Friedli
e8f6edc5af Add ipv6calc completion. 2010-01-14 21:19:09 +02:00
Ville Skyttä
51a772f99f (testsuite) assert_exec() default test title grammar fix. 2010-01-14 20:19:52 +02:00
Ville Skyttä
1fe72c982e Update years in copyright notice. 2010-01-14 19:33:21 +02:00
Ville Skyttä
dfc8e9bb8f Apply xine and friends completion also to dragon. 2010-01-13 20:36:01 +02:00
Ville Skyttä
9f49a10117 (testsuite) Escape more regexp metacharacters. 2010-01-09 12:46:49 +02:00
Ville Skyttä
66f5c11ab7 (testsuite) Add simple rpm completion tests. 2010-01-09 12:24:19 +02:00
Ville Skyttä
90736110f1 Protect rpm installed packages and --eval from sed metacharacters in input. 2010-01-09 11:36:13 +02:00
Ville Skyttä
89affc872b More sed \? -> \{0,1\} portability fixes. 2010-01-09 11:33:38 +02:00
Ville Skyttä
19ca031a08 Small yp-tools completion improvements.
Install ypmatch completion only if ypcat is available instead of the
other way around, fix completions when commands are invoked using
paths to them.
2010-01-06 13:27:28 +02:00
Ville Skyttä
eb70bc8431 (testsuite) Fix ypmatch test case.
Completion is done for ypmatch's 2nd arg only at the moment.
2010-01-06 13:20:28 +02:00
Freddy Vulto
d5d7592169 Fix _known_hosts_real: awkcurd > curd 2010-01-06 09:31:31 +01:00
Ville Skyttä
db739401f7 sed portability fixes.
Use \{0,1\} (POSIX BRE) instead of \? or empty subexpression alternatives.
2010-01-04 18:15:10 +02:00
Ville Skyttä
4ec77ce531 awk usage portability fixes.
Some versions of Solaris awk don't like a space between -F and the
separator char (and the char really must be a char, it can't be an
ERE, but that's something for another patch).
2010-01-03 23:56:40 +02:00