From: Tomi Ollila Date: Sun, 4 Oct 2015 18:59:42 +0000 (+0300) Subject: notmuch-emacs-mua: set EMACS{,CLIENT} variables to defaults when empty X-Git-Tag: 0.22_rc0~107 X-Git-Url: https://git.notmuchmail.org/git/notmuch/commitdiff/e870d73dc8830fbfc4c79b02c839ced0d42f73a5?p=notmuch;a=commitdiff_plain;h=e870d73dc8830fbfc4c79b02c839ced0d42f73a5 notmuch-emacs-mua: set EMACS{,CLIENT} variables to defaults when empty ... in addition to doing this when these variables are unset. It is more useful to use defaults (emacs or emacsclient) than empty string as a command name. --- diff --git a/notmuch-emacs-mua b/notmuch-emacs-mua index 016fa126..4404cd7c 100755 --- a/notmuch-emacs-mua +++ b/notmuch-emacs-mua @@ -30,8 +30,8 @@ escape () printf -v $2 '%s' "${__escape_arg__//\"/\\\"}" } -EMACS=${EMACS-emacs} -EMACSCLIENT=${EMACSCLIENT-emacsclient} +EMACS=${EMACS:-emacs} +EMACSCLIENT=${EMACSCLIENT:-emacsclient} PRINT_ONLY= NO_WINDOW=