| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
| |
Does away with the nasty hack around man page discovery, and still
compatible with Bash 2.05a
|
| |
|
| |
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Otherwise Bash adds a slash to it. %q quoting isn't perfect, but it's
better
|
|
|
|
|
| |
Damn, looks like 2.05a doesn't have compopt; put it back into the
complete line
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
* Remove all instances of compgen; for filename completion it's quite
broken as it relies on implicit wordsplitting in array context, and
doesn't have an option to print with a null delimiter; replaced with
manual for/while loops instead
* Add IFS= to while/read loops over filenames
* Use "dirname/s" instead of "dir/s" variables to avoid keyword
collisions and for clarity
* Remove some unnecessary variables
* Use shorter syntax for loop exit conditions
* Move completion options into functions where applicable rather than
having them on the completion definition itself
|
|
|
|
|
|
| |
This is technically still wrong; COMPREPLY needs to be specified with
null-delimited IFS, as done in the pass() function. This will do for
now.
|
|
|