From: markus schnalke Date: Tue, 27 Mar 2012 09:35:56 +0000 (+0200) Subject: Added error message if COMPLETION-BASH is source directly. X-Git-Tag: mmh-thesis-end~150 X-Git-Url: http://git.marmaro.de/?a=commitdiff_plain;h=694fc4000bfe9e5091c30773c49b14c8fbc5c1ad;p=mmh Added error message if COMPLETION-BASH is source directly. Pulled in from nmh. Thanks to David Levine. --- 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() {