From 494e1c49b2a57391441f7fc7c944145a653fc740 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ville=20Skytt=C3=A4?= Date: Tue, 23 Jun 2015 15:52:36 +0300 Subject: [PATCH] CNF: Don't run if bash command completion is being run https://bugzilla.redhat.com/show_bug.cgi?id=1164410 --- contrib/command-not-found/PackageKit.sh.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/contrib/command-not-found/PackageKit.sh.in b/contrib/command-not-found/PackageKit.sh.in index c50c68d..55f4b9b 100644 --- a/contrib/command-not-found/PackageKit.sh.in +++ b/contrib/command-not-found/PackageKit.sh.in @@ -19,6 +19,9 @@ command_not_found_handle () { # don't run if packagekitd doesn't exist in the _system_ root [ ! -x @LIBEXECDIR@/packagekitd ] && runcnf=0 + # don't run if bash command completion is being run + [ ${COMP_CWORD-} ] && runcnf=0 + # run the command, or just print a warning if [ $runcnf -eq 1 ]; then @LIBEXECDIR@/pk-command-not-found "$@" -- 2.4.3