bin/doom: improve POSIX compliance
+ The bourne shell does not guarantee it'll understand the new $() subshell syntax. + Can't rely on set -e to short circuit the script. No avoiding the roundabout suppression of the postscript error with '&& true'. Might fix #3844, but doubt it.
This commit is contained in:
parent
b6a6f41025
commit
e03824bf5e
1 changed files with 1 additions and 1 deletions
2
bin/doom
2
bin/doom
|
@ -3,7 +3,7 @@
|
||||||
:; case "$EMACS" in *term*) EMACS=emacs ;; *) EMACS="${EMACS:-emacs}" ;; esac
|
:; case "$EMACS" in *term*) EMACS=emacs ;; *) EMACS="${EMACS:-emacs}" ;; esac
|
||||||
:; $EMACS --version >/dev/null 2>&1 || { >&2 echo "Can't find emacs in your PATH"; exit 1; }
|
:; $EMACS --version >/dev/null 2>&1 || { >&2 echo "Can't find emacs in your PATH"; exit 1; }
|
||||||
:; $EMACS --no-site-file --script "$0" -- "$@" || __DOOMCODE=$?
|
:; $EMACS --no-site-file --script "$0" -- "$@" || __DOOMCODE=$?
|
||||||
:; [ "${__DOOMCODE:-0}" -eq 128 ] && "$(emacs -Q --batch --eval '(princ temporary-file-directory)')/doom.sh" "$0" "$@"
|
:; [ "${__DOOMCODE:-0}" -eq 128 ] && { "`$EMACS -Q --batch --eval '(princ temporary-file-directory)'`/doom.sh" "$0" "$@" && true; __DOOMCODE=$?; }
|
||||||
:; exit $__DOOMCODE
|
:; exit $__DOOMCODE
|
||||||
|
|
||||||
;; The garbage collector isn't important during CLI ops. A higher threshold
|
;; The garbage collector isn't important during CLI ops. A higher threshold
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue