[Bash-completion-commits] [bash-completion] 01/01: Document how to avoid command_not_found_handler interference

Ville Skyttä scop-guest at moszumanska.debian.org
Tue Jun 23 13:40:43 UTC 2015


This is an automated email from the git hooks/post-receive script.

scop-guest pushed a commit to branch master
in repository bash-completion.

commit 1d9e705639e40c28b3ae4ce2a99c9c7308e3c653
Author: Ville Skyttä <ville.skytta at iki.fi>
Date:   Tue Jun 23 16:40:23 2015 +0300

    Document how to avoid command_not_found_handler interference
---
 README | 8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/README b/README
index 78cde72..8af8113 100644
--- a/README
+++ b/README
@@ -260,6 +260,14 @@ A. Probably because the database is being queried every time and this uses a
    unless it detects that the database has changed since the file was created,
    in which case it will still use the database to ensure accuracy.
 
+Q. bash-completion interferes with my command_not_found_handler function!
+
+A. If your command_not_found_handler function is not intended to address
+   (possibly missing) commands invoked during bash programmable completion
+   functions, you can take that into account in your function for example by
+   testing if the $COMP_* variables are set and taking appropriate bypass or
+   other action.
+
 Q. Can tab completion be made even easier?
 
 A. The readline(3) library offers a few settings that can make tab

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/bash-completion/bash-completion.git



More information about the Bash-completion-commits mailing list