From 35b146a107a0f3364785d96e7b197756dbbd0e28 Mon Sep 17 00:00:00 2001 From: ianmacd <> Date: Thu, 14 Oct 2004 06:54:55 +0000 Subject: [PATCH] - test for dhclient before installing its completion function --- bash_completion | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/bash_completion b/bash_completion index b4ac03d4..e0d5b638 100644 --- a/bash_completion +++ b/bash_completion @@ -1,6 +1,6 @@ # bash_completion - some programmable completion functions for bash 2.05b # -# $Id: bash_completion,v 1.745 2004/10/14 08:52:14 ianmacd Exp $ +# $Id: bash_completion,v 1.746 2004/10/14 08:54:55 ianmacd Exp $ # # Copyright (C) Ian Macdonald # @@ -6041,7 +6041,7 @@ complete -F _info $filenames info # dhclient(1) completion # -_dhclient() +have dhclient && _dhclient() { local cur prev @@ -6067,7 +6067,7 @@ _dhclient() _interfaces fi } -complete -F _dhclient dhclient +[ "${have:-}" ] && complete -F _dhclient dhclient # lvm(8) completion #