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:
@@ -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 ---------------------------
|
||||
|
||||
|
||||
@@ -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
|
||||
|
||||
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user