emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[nongnu] elpa/bash-completion 7dec35f302 087/313: Set MAIL to the empty


From: ELPA Syncer
Subject: [nongnu] elpa/bash-completion 7dec35f302 087/313: Set MAIL to the empty string in case shopt -u mailwarn is not
Date: Sat, 3 Dec 2022 10:59:19 -0500 (EST)

branch: elpa/bash-completion
commit 7dec35f302c1a168215fbb7bf24b7bc4a90d6843
Author: Stephane Zermatten <szermatt@gmx.net>
Commit: Stephane Zermatten <szermatt@gmx.net>

    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

[Prev in Thread] Current Thread [Next in Thread]