The quote is needed, otherwise it is treated as a bash glob first, which
causes trouble if there actually happens to be matching files, and
fails entirely if `shopt -s failglob` is set.
- Improved bash completion when TASKRC is exported.
- Added a unit test.
Description of previous behavior:
$ export TASKRC=/tmp/.taskrc
$ task ad<TAB><TAB>
lead to the following output:
$ task adTASKRC override: /tmp/.taskrc
dTASKRC override: /tmp/.taskrc
TASKRC override: /tmp/.taskrc
Signed-off-by: Paul Beckingham <paul@beckingham.net>
- The bash completion script no longer expands IDs after 'depends:'.
(Such expansion required running gc() which is not correct.)
- The unit tests for expanding 'depends:' were commented out (and not
removed) in the case that someday we implement a command to list IDs
without running gc().
- Unit tests to check that gc() is not run after 'depends:' were added.
- Improve bash completion for 'project:', 'depends:', and 'priority:'.
- 'projABC:' no longer expands (same for 'depends:' and 'priority:').
- 'proj:' only expands if abbreviation.minimum is less than 5
(same for 'depends:' and 'priority:' and for other values of
abbreviation.minimum).
- Unit tests for the above.
- Improved style and efficiency of Perl test code.
- Added alias expansion to feature log of bash completion script.
- Added comments to bash completion script.
Completion behavior has changed from bash-3 to bash-4. Even the colon
character appears in COMP_WORDBREAKS of both versions, only bash-4 seems to
honor it. This appears to be a bug in bash-3. Changes made here work around
the problem so that completion of project names works for either version of
bash.
- Completion list for commands is now compiled dynamicaly using a task command.
- Completion now also works for direct task manipulations with IDs
eg task 3 -FOO pro:ERNIE or task 2 done
- Completes tags and project names for any command,
not just list variants (thanks to John Florian)
- bash-completion now completes tags for removal using '-'
- internal completion list compiled by using underscore
variants of corresponding commands