477 Commits

Author SHA1 Message Date
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
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
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
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
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
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
Crestez Dan Leonard
b493869b8d _reply_compgen_array: Fix leaking to environment 2010-02-04 19:18:14 +02:00
Crestez Dan Leonard
1096dadc26 Separate _linux_fstab function 2010-02-04 16:47:44 +02:00
Crestez Dan Leonard
99b289474e Initial implementation of _reply_compgen_array 2010-02-04 16:31:51 +02:00
Crestez Dan Leonard
aac11de466 Fix nfs mount completion if the path to showmount contains a space. 2010-02-02 11:17:33 +02:00
Ville Skyttä
c5470fdf74 Simplify java classes-in-classpath-dirs completion.
We intentionally don't look into subdirs of dirs in classpath
(Debian: #496828) so a plain "ls" instead of "find" with non-portable
-maxdepth is fine.
2010-01-30 12:41:54 +02:00
Ville Skyttä
f62a4ad7b2 Indentation fixes. 2010-01-30 12:22:33 +02:00
Freddy Vulto
1061876bbc Merge branch 'fvu' 2010-01-29 23:24:58 +01:00
Freddy Vulto
d866854066 Fix _usergroup, cpio and chown completions
Improve test suite.
Thanks to Leonard Crestez (Alioth: #311396, Debian: #511788).

`assert_complete' is improved.  It proved difficult to tell tcl to ignore
backslash escapes, e.g. the `\b' is no BACKSPACE but a literal `b'.  The added
function `split_words_bash' should to the trick now.

Added function `assert_no_complete' which can also be reached by calling
`assert_complete' with an empty `expected' argument:

    assert_complete "" qwerty
2010-01-29 23:23:30 +01: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ä
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
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
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ä
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ä
825f3cce05 Use _parse_help in _bzip2(). 2010-01-18 19:11:28 +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ä
688f6a0ba6 Fix leak of 'i' from _yum(). 2010-01-16 13:44:03 +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ä
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ä
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
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
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ä
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
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
Guillaume Rousse
8c483668c1 use consistent variable names with screen completion 2009-12-30 00:43:31 +01:00