Scripts: Disable hooks in bash completion script

- Stop on-launch and on-exit hooks with output from interfering with
  bash completion.
This commit is contained in:
Wilhelm Schuermann
2015-04-01 14:54:26 +02:00
parent 04d0c52a43
commit 229078ffed
3 changed files with 5 additions and 3 deletions

View File

@@ -14,6 +14,8 @@
Scott Carter).
- Setting 'bulk' to zero is interpreted as infinity, which means there is no
amount of changes that is considered dangerous (thanks to Tomas Babej).
- Disable hooks in bash completion script. Hooks were previously able to
abort processing or output interfering data, breaking completion.
------ current release ---------------------------

View File

@@ -50,7 +50,7 @@
#
################################################################################
#the following variable is substituted for by ../../test/bash_completion.t
taskcommand='task rc.verbose:nothing rc.confirmation:no'
taskcommand='task rc.verbose:nothing rc.confirmation:no rc.hooks:off'
_task_get_tags() {
$taskcommand _tags

View File

@@ -55,9 +55,9 @@ if (open my $target, '>', 'task.sh')
{
my $temp=$_;
chomp($_);
if ($_ eq "taskcommand='task rc.verbose:nothing rc.confirmation:no'")
if ($_ eq "taskcommand='task rc.verbose:nothing rc.confirmation:no rc.hooks:off'")
{
print $target "taskcommand='../src/task rc.verbose:nothing rc.confirmation:no rc:bug.rc'";
print $target "taskcommand='../src/task rc.verbose:nothing rc.confirmation:no rc.hooks:off rc:bug.rc'";
}
else
{