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
Ville Skyttä
77dee3a323
(testsuite) FreeBSD and Solaris sed compatibility fixes.
...
The linefeed between the final "d" and "}" seems to be significant for
these versions of sed. And they are quite anal about comments, so
move them outside of the sed statement here.
2010-01-03 23:49:19 +02:00
Guillaume Rousse
9fc6ef658b
Revert "use _split_longopt", as wodim options don't use dashes
...
This reverts commit f35923a50515c5bb0f3f843e7d6a99b979698e61.
2010-01-03 21:23:57 +01:00
Ville Skyttä
2a5a1d68d9
Fix some syntax errors.
...
For some reason, these constructs got flagged as syntax errors at load
time with bash 4.0.33(0)-release on FreeBSD 8.0 whereas they work
elsewhere I've tested (e.g. 4.0.23(1)-release on Fedora Core 11).
2010-01-03 21:18:41 +02:00
Guillaume Rousse
2cf62de308
protect against error when used in history context (COMP_CWORD=0)
2010-01-03 19:01:56 +01:00
Guillaume Rousse
ed3a2f7786
use _get_pword
2010-01-03 19:01:26 +01:00
Guillaume Rousse
f35923a505
use _split_longopt
2010-01-03 18:13:31 +01:00
Ville Skyttä
25a0fcf1b4
Hook up openssl tests, do env modification checks.
2010-01-03 16:25:33 +02:00
Ville Skyttä
360b3dbe19
(testsuite) Indentation fixes.
2010-01-03 15:56:00 +02:00
Ville Skyttä
3d43cdfd2b
(testsuite) Remove some obsolete comments.
2010-01-03 15:52:18 +02:00
Ville Skyttä
ec3227366a
(testsuite) Make diff_env() compatible with Solaris sed.
...
It appears to tolerate comments only at beginning of line.
2010-01-03 15:42:32 +02:00
Ville Skyttä
aae256d7e0
Do basic HTML file completion with Firefox and Chrome and friends, and Epiphany.
2010-01-03 14:21:08 +02:00
Ville Skyttä
9c2843a956
Remove/rephrase some obsolete bash 2 related comments.
2010-01-03 14:03:38 +02:00
Ville Skyttä
5a4eff054b
Remove generated bash_completion.sh.
2010-01-03 14:02:06 +02:00
Ville Skyttä
eab8d5afb8
Substitute both occurrences of install path.
2010-01-03 13:58:32 +02:00
Ville Skyttä
86070a8f60
Fix __expand_tilde_by_ref usage example.
2010-01-03 13:50:14 +02:00
Ville Skyttä
563e4d355d
Split mount and umount completion into contrib/mount.
2010-01-02 10:35:18 +02:00
Guillaume Rousse
38516ee431
Merge branch 'master' of git+ssh://git.debian.org/git/bash-completion/bash-completion
2009-12-31 17:36:20 +01:00
Freddy Vulto
3f0bfbc5ae
Fix __reassemble_comp_words_by_ref()
...
Completing "a b " returned cur=b instead of cur=nothing if a wordbreak
character was specified.
2009-12-31 11:12:15 +01:00
Ville Skyttä
07db41e38f
Don't list non-working "rtc" in --device completions.
2009-12-30 23:05:29 +02:00
Ville Skyttä
9c402241c4
Add rtcwake completion.
2009-12-30 22:59:17 +02:00
Freddy Vulto
f321c377af
(testsuite) Delete directory fixtures/_filedir/a\b
...
Directories `a\b' and `a*b' are now created run-time on a
non-Cygwin/Windows system only. Tests concerning these directories will
also be run only on a non-Cygwin/Windows system.
(Alioth #312191 )
2009-12-30 14:48:17 +01:00
Freddy Vulto
3251038c9d
Fix __reassemble_comp_words_by_ref()
...
On bash-3, completing a b c: with COMP_WORDBREAKS -= : would result in the
current word being bc: (Alioth #312190 )
Added unit test, run via:
./run unit/_get_cword.exp
2009-12-30 09:43:16 +01:00
Guillaume Rousse
8c483668c1
use consistent variable names with screen completion
2009-12-30 00:43:31 +01:00
Guillaume Rousse
ec1e137977
indentation fix
2009-12-30 00:41:15 +01:00