From 694fc4000bfe9e5091c30773c49b14c8fbc5c1ad Mon Sep 17 00:00:00 2001 From: markus schnalke Date: Tue, 27 Mar 2012 11:35:56 +0200 Subject: [PATCH] Added error message if COMPLETION-BASH is source directly. Pulled in from nmh. Thanks to David Levine. --- docs/COMPLETION-BASH | 3 +++ 1 file changed, 3 insertions(+) diff --git a/docs/COMPLETION-BASH b/docs/COMPLETION-BASH index e4af65d..4938903 100644 --- a/docs/COMPLETION-BASH +++ b/docs/COMPLETION-BASH @@ -2,6 +2,9 @@ # Copyright 2003 "Wade Richards" # Permission granted to redistribute under the BSD license +[ "$BASH_COMPLETION" ] || echo "ERROR: COMPLETION-BASH is not intended to be \ +sourced directly, but rather added to a bash-completion package installation." + have show && _nmh() { -- 1.7.10.4