3622 Commits

Author SHA1 Message Date
Ville Skyttä
976ad96007 strings: Fix -T/--target arg completion with non-English locale 2014-12-15 12:43:55 +02:00
Ville Skyttä
6a60025e01 chrome, firefox etc: Complete on *.pdf 2014-12-15 12:03:02 +02:00
Ville Skyttä
dfb2d01bab ccache: Add -o/--set-config arg name completion 2014-11-30 13:06:09 +02:00
Ville Skyttä
89add74ae0 gphoto2: Replace tail with awk 2014-11-16 12:26:19 +02:00
Ville Skyttä
7d3de619d1 *: Invoke command to be completed, not its basename 2014-11-16 12:18:41 +02:00
Ville Skyttä
7d66285b42 gphoto2: Fix split argument handing, and colon treatment in --port args 2014-11-16 12:10:35 +02:00
Ville Skyttä
32e6e49088 _completion_loader: Protect compgen from -* leakage (Debian: #769399) 2014-11-15 21:37:47 +02:00
Ville Skyttä
ed07b18e61 Actually install the lz4 completion 2014-11-10 23:22:38 +02:00
Ville Skyttä
52d8316c5c _pnames: Add -s for producing (possibly) truncated names (RedHat: #744406)
pgrep and pkill actually expect these instead of the full names.
2014-11-10 22:36:49 +02:00
Ville Skyttä
9444a8742e (testsuite) Add cd in dir without subdirs or CDPATH test case 2014-11-01 21:49:15 +02:00
Ville Skyttä
882649b712 Protect various compgen invocations from -* leakage (Debian: #766163) 2014-11-01 21:48:35 +02:00
Ville Skyttä
4038c71357 pigz, unpigz: Handle *.zz 2014-09-17 19:40:02 +03:00
Barry Warsaw
a9c556ccad _init_completion: Handle cword < 0 (LP: #1289597)
Previously only bash 4.3 seemed to provoke this, but now with the
empty command consistency tweak it occurs with earlier as well.
2014-09-17 19:36:08 +03:00
Ville Skyttä
7394d744ae _completion_loader: Set empty command to _EmptycmD_ for cross version compat
bash 4.3 gives us _EmptycmD_ for empty commands, while earlier
versions give us the empty string; set it to _EmptycmD_ for those as
well for consistency.
2014-09-17 19:22:56 +03:00
Ville Skyttä
fa064e8563 Comment update 2014-09-17 19:18:45 +03:00
Ville Skyttä
42e1f344b7 rpmbuild: Complete *.spec on --nobuild 2014-08-30 13:36:12 +03:00
Patrick Monnerat
e879eb0a17 rpmbuild: Complete *.spec on --clean (RedHat: #1132959) 2014-08-30 13:35:57 +03:00
Ville Skyttä
852e0f60f0 mplayer, *xine: Complete on *.mts (Debian: #759219) 2014-08-29 19:32:03 +03:00
Ville Skyttä
86df56d5ec ant: Support buildfile set in $ANT_ARGS (Alioth: #314735) 2014-07-20 11:42:09 +03:00
Ville Skyttä
40db483174 (testsuite) Add ant -f <buildfile> test case 2014-07-20 11:33:31 +03:00
Ville Skyttä
98d6b5e440 ant: Don't offer more completions after options that exit 2014-07-20 11:20:40 +03:00
Ville Skyttä
d259e71758 7z, adb: Trivial cleanups 2014-07-19 19:15:49 +03:00
Ville Skyttä
eb79f9d97f python(3): Add -X argument non-completion 2014-07-19 19:12:11 +03:00
Ville Skyttä
7c5c622dda xsltproc. TODO fix for previous commit 2014-07-19 17:17:53 +03:00
Ville Skyttä
ab8eeb3a71 xmllint, xmlwf, xsltproc: Complete on *.dbk and *.docbook (Alioth: #314770) 2014-07-19 17:15:14 +03:00
Ville Skyttä
9e2db8a03e xz: Complete -T/--threads argument 2014-07-04 18:43:00 +03:00
Ville Skyttä
dbb93ae77b (testsuite) Save shell variables when saving env (Alioth: #314720) 2014-07-01 22:23:35 +03:00
Damien Nadé
16361c873b (testsuite) Use 'set' command posix behaviour when saving env (Alioth: #314720) 2014-07-01 22:22:17 +03:00
Ville Skyttä
4bbab196cb adb: New completion 2014-07-01 17:34:42 +03:00
Damien Nadé
afe39fd1e1 Added test/site.{bak,exp} to .gitignore 2014-06-12 01:58:54 +04:00
Igor Murzov
9d250f9b53 isql: Fix failglob failure 2014-06-10 02:43:44 +04:00
Igor Murzov
60b8fabec4 ssh-add, ssh-keygen: -? needs to be quoted under failglob (take 2) (Alioth: #314709) 2014-06-10 02:43:44 +04:00
Ville Skyttä
c6ec8f979b modprobe: Try parsing help before using hardcoding option list 2014-06-09 09:40:47 +03:00
Peter Wu
454f67a047 modprobe: fix params with multi-line descriptions
The command `modprobe -p nouveau` outputs:

    tv_norm:Default TV norm.
    		Supported: PAL, PAL-M, PAL-N, PAL-Nc, NTSC-M, NTSC-J,
    			hd480i, hd480p, hd576i, hd576p, hd720p, hd1080i.
    		Default: PAL
    		*NOTE* Ignored for cards with external TV encoders. (charp)
    tv_disable:Disable TV-out detection (int)
    ...

This breaks module parameter auto-completion, so only suggest parameters
which are not preceded by whitespace. Tested with kmod 17-1 on Arch
Linux.

Modified-By: Ville Skyttä <ville.skytta@iki.fi>
2014-06-09 09:21:58 +03:00
Damien Nadé
d238ab5445 _parse_help: Fix failglob failures (Alioth: #314707) 2014-06-09 01:46:50 +04:00
Igor Murzov
dcb0ea2ca2 (testsuite): move testing of _linux_fstab() to umount.exp
The function is only used for umount completion.
2014-06-09 01:46:50 +04:00
Igor Murzov
292830be53 umount: Fix mount points escaping/unescaping with Bash-4.3 2014-06-09 01:46:49 +04:00
Damien Nadé
01024f595e _lvm: using a single-pattern case and invoking function according to words[1] 2014-06-07 12:32:07 +03:00
Ville Skyttä
615fd18195 (testsuite) Add vgcreate test case for _lvm_count_args with failglob on 2014-06-07 12:27:27 +03:00
Damien Nadé
3717fe7b6d lvm: _lvm_count_args parameter must be quoted in order to failglob not to complain 2014-06-07 12:16:21 +03:00
Ville Skyttä
b65232fa34 _filedir_xspec: Fix with failglob on 2014-06-07 12:15:02 +03:00
Igor Murzov
72207276a5 slapt-src: Handle --config=FILE option properly
This is a followup to commit 3a65be4a18.
2014-06-06 01:28:47 +04:00
Igor Murzov
505481c8cc sbopkg, slapt-{get,src}: expand tilde in config file name
This fixes following [[ -r "$config" ]] when file name begins with ~.
2014-06-06 01:28:46 +04:00
Damien Nadé
154f388413 gendiff: Quoting suffix pattern to avoid triggering failglob 2014-06-05 22:52:01 +03:00
Igor Murzov
70e52c8a1f slapt-{get,src}: Fix issue with sed not being able to handle some characters
# LC_ALL=C slapt-get --search "^moo" | sed -ne "/^moo/{s/ .*$//;p}"
 moos-project-viewer-2.8.1-x86_64-1sl [inst=no]: moos-project-viewer - Free Viewer for Microsoft®

 # LC_ALL=C slapt-get --search "^moo" | LC_ALL=C sed -ne "/^moo/{s/ .*$//;p}"
 moos-project-viewer-2.8.1-x86_64-1sl
2014-06-05 02:04:25 +04:00
Igor Murzov
3a65be4a18 slapt-src: split options from their arguments 2014-06-05 02:04:24 +04:00
Igor Murzov
8566a5a896 Quote _filedir arguments when appropriate to prevent failglob failures 2014-06-05 02:04:23 +04:00
Dams Nadé
24c8f1e44e ssh-add, ssh-keygen: -? needs to be quoted under failglob (Alioth: #314709) 2014-06-03 23:14:59 +03:00
Ville Skyttä
1ed2377c89 Various mostly array element unsetting fixes under failglob 2014-06-03 23:11:01 +03:00
Dams Nadé
84135d756b Quote unset array element to avoid globbing interference (Alioth: #314708) 2014-06-03 22:52:18 +03:00