From 1d9e705639e40c28b3ae4ce2a99c9c7308e3c653 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 23 Jun 2015 16:40:23 +0300 Subject: [PATCH] Document how to avoid command_not_found_handler interference --- README | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/README b/README index 78cde728..8af8113d 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