branch: elpa/bash-completion
commit 7dec35f302c1a168215fbb7bf24b7bc4a90d6843
Author: Stephane Zermatten <[email protected]>
Commit: Stephane Zermatten <[email protected]>

    Set MAIL to the empty string in case shopt -u mailwarn is not
        enough (and it wasn't enough for me)
---
 elisp/bash-completion.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/elisp/bash-completion.el b/elisp/bash-completion.el
index 3401c08aed..e911fdc838 100644
--- a/elisp/bash-completion.el
+++ b/elisp/bash-completion.el
@@ -816,7 +816,9 @@ is set to t."
            ;; attempt to turn off unexpected status messages from bash
            ;; if the current version of bash does not support these options,
            ;; the command will fail silently and be ignored.
-           (bash-completion-send "shopt -u mailwarn; shopt -u checkjobs" 
process)
+           ;; export MAIL='' is a desperate attempt to make sure the mail 
warning
+           ;; is really switched off
+           (bash-completion-send "shopt -u mailwarn; shopt -u checkjobs; 
export MAIL=''" process)
            ;; some bash completion functions use quote_readline to double-quote
            ;; strings - which compgen understands but only in some environment.
            ;; disable this dreadful business to get a saner way of handling

Reply via email to