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.